Documentation / Roles / System / docker_engine

docker_engine

Source Code Build Status License: MIT

Setup docker engine.


Default Variables

dockerengine_base_dir

Default value

dockerengine_base_dir: /var/lib/docker

dockerengine_block_registries

Default value

dockerengine_block_registries: []

dockerengine_cli_options

Default value

dockerengine_cli_options:
  - selinux-enabled
  - log-driver=journald
  - log-level=info
  - signature-verification=false

dockerengine_docker_group_enabled

Default value

dockerengine_docker_group_enabled: false

dockerengine_http_proxy

Default value

dockerengine_http_proxy: _unset_

dockerengine_https_proxy

Default value

dockerengine_https_proxy: _unset

dockerengine_insecure_registries

Default value

dockerengine_insecure_registries: []

dockerengine_networks

List of extra docker networks to create. For configuration detials see docker_networks.

Default value

dockerengine_networks: []

Example usage

dockerengine_networks:
  - name: my_network
    driver: bridge
    enable_ipv6: True
    ipam_config:
      - subnet: fdd1:ac8c:0557:7ce1::/64
    force: False
    state: present

dockerengine_networks_extra

Default value

dockerengine_networks_extra: []

dockerengine_no_proxy

Default value

dockerengine_no_proxy: _unset_

dockerengine_nsremap_range_length

Default value

dockerengine_nsremap_range_length: 65536

dockerengine_nsremap_range_start

Default value

dockerengine_nsremap_range_start: 231072

dockerengine_nsremap_user

Default value

dockerengine_nsremap_user: dockremap

dockerengine_packages

Default value

dockerengine_packages:
  - docker

dockerengine_packages_extra

The role requires epel repository and pip to work. You can use dockerengine_packages_extra to install these dependencys.

Default value

dockerengine_packages_extra: []

dockerengine_secure_registries

Default value

dockerengine_secure_registries: []

dockerengine_service

Default value

dockerengine_service: docker

dockerengine_storage_lv

Default value

dockerengine_storage_lv: lv_docker

dockerengine_storage_pvs

Default value

dockerengine_storage_pvs: _unset_

Example usage

dockerengine_storage_pvs: /dev/sda

dockerengine_storage_size

Default value

dockerengine_storage_size: 100G

dockerengine_storage_vg

Default value

dockerengine_storage_vg: vg_docker

dockerengine_usernamespace_enabled

Default value

dockerengine_usernamespace_enabled: false

Dependencies

None.