Installs the Docker CE package.
None.
Variable | Description |
---|---|
idk_docker_package_name | Defines the package name that will be installed. |
idk_docker_add_to_group | Defines whether the task to add userdis to the docker group should be run. |
idk_docker_group_users | Defines the users that will be added to the docker group. |
idk_docker_service_enable | Enable and start the docker service when set to true . |
The python3-apt
package must either be installed or be available to be installed on Debain 10 & 11 based system.
These against the vagrant VM's produced by Jeff Geerling.
The script provided by Docker (https://get.docker.com/).
- Is no longer suported on Debian 9.
- Does not currently work on clones such as RockyLinux or AlmaLinux.
Due to CentOS Linux 8 going End Of Life (EOL) as of December 31st 2021, You will need to run the below commands on the server to allow the yum/dnf commands to work as expected.
$ cd /etc/yum.repos.d/
$ sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
$ sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
$ yum check-update
- hosts: servers
vars_files:
- vars/main.yml
roles:
- glillico.install_docker
MIT
This project/role was created in 2022 by Graham Lillico.