docker

docker

Source Code General Workflow Readme Workflow Galaxy Workflow License: Apache-2.0 Ansible Role

Ansible role to install and configure Docker container runtime.

Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.

Table of content


Requirements

  • Minimum Ansible version: 2.10

Default Variables

docker_arch

Target system architecture used to select correct deb repository

Default value

docker_arch: amd64

docker_daemon_command

Command executed to start the daemon

Default value

docker_daemon_command: /usr/bin/dockerd -H unix://

docker_daemon_config

Add config options to daemon.json

Default value

docker_daemon_config:
  log-driver: json-file
  log-opts:
    max-size: 5m
    max-file: '3'
  live-restore: true

docker_daemon_override

Default value

docker_daemon_override: false

docker_keyring

Path for the repository keyring

Default value

docker_keyring: /usr/share/keyrings/docker-archive-keyring.gpg

docker_mount_flags

Optionally define mount flags for systemd

Default value

docker_mount_flags:

docker_networks_extra

List of extra docker networks to create

Default value

docker_networks_extra: []

Example usage

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

docker_networks_general

List of general docker networks to create

Default value

docker_networks_general: []

Example usage

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

docker_registries_extra

List of extra docker registries to auto login

Default value

docker_registries_extra: []

Example usage

docker_registries_extra:
  - url: myregistry.example.com
    username: docker
    password: secure
    email: [email protected]
    reauthorize: False
    state: present

docker_registries_general

List of general docker registries to auto login

Default value

docker_registries_general: '{{ docker_registries | default([]) }}'

Example usage

docker_registries_general:
  - url: myregistry.example.com
    username: docker
    password: secure
    email: [email protected]
    reauthorize: False
    state: present

docker_upstream_version

Install from upstream repository

Default value

docker_upstream_version: true

Discovered Tags

docker

Dependencies

License

Apache-2.0

Author

Thomas Boerger

About

Ansible role to install and configure Docker container runtime

Install
ansible-galaxy install rolehippie/docker
GitHub repository
License
apache-2.0
Downloads
1670
Owner
Ansible role collection of Webhippie