CH
chzerv/docker-archlinux-ansible
Archlinux container for Ansible role testing.
Archlinux Image for Ansible Testing
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.
Branches/Tags
| Branch | Distribution version | Image tag |
|---|---|---|
| master | latest | latest |
How to build locally
- Install Docker or Podman.
- Clone the repository:
git clone https://github.com/chzerv/docker-archlinux-ansible.git. cdinto the directory and rundocker build -t archlinux-ansible .
How to use
-
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