DEPRECATED - Ubuntu 18.04 is End Of Life (EOL) as of May 31st 2023. For alternatives please see the below.
A docker container using Ubuntu 18.04 with Ansible installed for playbook and role testing.
- 'latest' : Python 3.6.x and the latest stable version of Ansible.
- 'python2' : Python 2.7.x and the latest stable version of Ansible.
To build this docker container you can do the following.
- Install Docker Engine, see here for details.
- Clone this repository.
$ git clone https://github.com/glillico/docker-ubuntu1804-ansible.git
- Change to the repositories directory.
$ cd docker-ubuntu1804-ansible
- Run the command
$ docker build -t ubuntu1804-ansible .
- Install Docker Engine, see here for details.
- To create a containter from the image you created in the
How To Build
section run the command.$ docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro ubuntu1804-ansible:latest
- To confirm Ansible is working within the container run the command.
$ docker exec --tty <CONTAINER ID> env TERM=xterm ansible --version
This image is used for testing purposes only and is not intended to be used to provide live services of any sort.
MIT
Created in 2020 by Graham Lillico.