Skip to content

JoeNyland/ansible-docker-role

Repository files navigation

joenyland.docker

CI

Installs Docker (CE).

Requirements

None.

Role Variables

docker_users

A list of users who should be able to use Docker on the target hosts.

This adds the requested users to the docker group on the target hosts, which allows them to communicate with the Docker daemon without root access.

More info https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user

docker_daemon_config

A hash of configuration to be stored in /etc/docker/daemon.json.

Allows configuration of the Docker daemon.

E.g.

docker_daemon_config:
  experimental: true
  ipv6: true
  ip6tables: true
  fixed-cidr-v6: 2001:aaaa:bbbb:ccc::/64
  registry-mirrors:
    - https://registry.ipv6.docker.com

Dependencies

None.

Example Playbook

- hosts: server
  roles:
    - joenyland.docker

License

MIT

Author Information

⌨️ with ❤️ by Joe Nyland

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published