This is an Ansible-based installer for Docker Engine (formerly known as Docker CE) on various Linux Platforms. It has been tested on:
- Debian 10 + 11
- Rocky Linux 8 + 9, CentOS Stream 9
- openSUSE Leap 15
- Ubuntu 20.04 + 22.04
You will need ansible
(installation: see here) and (of course) git
.
Clone this repository and ch'dir into project folder:
git clone https://github.com/ansible-buch/docker-installer.git
cd docker-installer
Then start the installer.yml
with root permissions; e.g.:
sudo ./installer.yml
⚠️ This requires youransible-playbook
-command to be installed in/usr/bin
. If you get an error here, please fix the first line ("shebang") ininstaller.yml
. (Usetype ansible-playbook
to see your installation path.)
If you want to put a non-root user into the docker
group, just add
-e docker_user=USERNAME
, e.g.;
sudo ./installer.yml -e docker_user=vagrant
After a while, you will have Docker and these additional tools installed: