NOTE: This image is now DEPRECATED: Use:
This Dockerfile builds an Archlinux based container, capable to use systemd
, with Ansible and Ansible
testing tools pre-installed.
Branch | Distribution version | Image tag |
---|---|---|
master | latest | latest |
- Install Docker or Podman.
- Clone the repository:
git clone https://github.com/chzerv/docker-archlinux-ansible.git
. cd
into the directory and rundocker build -t archlinux-ansible .
-
Pull this image from Docker hub:
docker pull chzerv/docker-archlinux-ansible:latest
(or use the image you built locally). -
Run a container:
docker run -d --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro docker-archlinux-ansible:latest
-
Run Ansible inside that container:
docker exec -it $container_id ansible --version