Ubuntu docker container with built-in Ansible for playbook and role testing
Keep all version in one repository under different tags
18.04
. Ubuntu 18.04 LTS (Bionic Beaver)20.04
. Ubuntu 20.04 LTS (Focal Fossa)22.04
. Ubuntu 22.04.2 LTS (Jammy Jellyfish)24.04
. Ubuntu 22.04.2 LTS (Noble Numbat)
linux/386
(only18.04
)linux/amd64
linux/arm/v7
linux/arm64/v8
linux/ppc64le
linux/s390x
To build the image on your own locally, do the following:
- Install Docker.
cd
into target directory. For example, target directory forUbuntu 24.04
isubuntu24.04
- Run
docker build -t docker-ubuntu-ansible .
.
- Install Docker.
- Pull pre-build image via
docker image pull kirillzak/docker-ubuntu-ansible:latest
or build image. - Run a container from the image:
docker run --detach --privileged --volume /sys/fs/cgroup:/sys/fs/cgroup:ro docker-ubuntu-ansible:latest
Thanks for Jeff Geerling
Based on: