Archlinux Docker images to be used for testing ansible playbooks and roles.
docker tagamd64Dockerfile linksgit clone https://github.com/hybridadmin/docker-ansible-archlinux.gitcd into the directorydocker build -t ansible-archlinux .Pull the image using the following command:
docker pull hybridadmin/ansible-archlinux:latest
Run a container using the image with the following command:
docker run -d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:rw --cgroupns=host hybridadmin/ansible-archlinux:latest
Use ansible inside the container:
docker exec --tty [container_id] env TERM=xterm ansible --version
docker exec --tty [container_id] env TERM=xterm ansible-playbook /path/to/playbook.yml --syntax-check
Connect to the container:
docker exec -it [container_id] /bin/bash
Content type
Image
Digest
sha256:65fc9b939…
Size
450.3 MB
Last updated
11 months ago
docker pull hybridadmin/ansible-archlinux