minimal role to install docker on a ubuntu host
None
None
docker_ce_package: "docker-ce"
The name of the docker package to install. This can be used to install a specific version of docker.
docker_daemon_options: {}
Custom dockerd
options can be configured through this dictionary representing the json file /etc/docker/daemon.json
.
manage_docker_service: true
Whether or not to manage the docker service. If set to false
, the docker service will not be restarted when the configuration changes.
- hosts: all
vars:
docker_ce_package: "docker-ce=5:23.0.1-1~ubuntu.20.04~focal"
manage_docker_service: true
docker_daemon_options:
insecure-registries:
- "registry.example.com"
- "registry.example.com:5000"
roles:
- ecshreve.docker
MIT
This role was created in 2023 by Eric Shreve