Skip to content

Latest commit

 

History

History
39 lines (21 loc) · 1.4 KB

README.md

File metadata and controls

39 lines (21 loc) · 1.4 KB

Docker Container Image: Ubuntu 18.04 LTS (Bionic) with Ansible

Build Status Docker Build Status License

A Ubuntu 18.04 LTS (Bionic) Docker container image for Ansible playbook and role testing.

This image uses docker systemctl replacement script to execute systemctl commands without systemd.

Usage

  1. Install Docker.

  2. Pull this image from Docker Hub.

    docker pull erjac77/docker-ubuntu1804-ansible:latest

  3. Run a container using the image.

    docker run -d --name [container_name] --privileged erjac77/docker-ubuntu1804-ansible:latest

  4. Use Ansible inside the container.

    a. docker exec -it [container_name] ansible --version

    b. docker exec -it [container_name] ansible-playbook /path/to/ansible/playbook.yml

Warnings

Important: For testing purposes only. Do not use this image in production!

License

Apache 2.0

Author Information

Eric Jacob (@erjac77)