Debian 9 (Stretch) container capable to use systemd, for Ansible role and playbook testing.
10K+
This Dockerfile builds a Debian 9 based container, capable to use systemd, mainly for Ansible role testing.
Tags are used to distinguish between Ansible versions and builds (e.g., testing vs stable).
latest: Latest stable version of Ansible.Install Docker.
Clone the repository:
git clone https://github.com/chzerv/debian9-systemd-ansible.git
cd into the directory and run docker build -t debian9-systemd-ansible .
dockercan be substituted for any other container engine, e.g., Podman.
Install Docker.
Pull this image from Docker hub:
docker pull chzerv/debian9-systemd-ansible:latest
If you built the image locally, feel free to use it instead.
Run a container:
docker run -d --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro debian9-systemd-ansible:latest
Run Ansible inside that container:
docker exec -it $container_id ansible --version
This image is used for testing Ansible roles and playbooks locally and/or in CI, hence, security is not a concern. It is not intended or recommended to use this image in production environments.
Content type
Image
Digest
sha256:f28d00e63…
Size
253.8 MB
Last updated
about 4 years ago
docker pull chzerv/debian9-systemd-ansible