A Docker image for run the Ansible Engine on Alpine Linux.
11,latest(Dockerfile)10(Dockerfile)9(Dockerfile)8(Dockerfile)7(Dockerfile)6(Dockerfile)5(Dockerfile)4(Dockerfile)3(Dockerfile)2.9(Dockerfile)
Note:
ansiblecurrent version is v11.7.0 (ansible-corev2.18.6). Please see the "Releases and maintenance | Ansible Documentation".
-
Get this project.
[ chusiang@workstation ~ ] $ git clone https://github.com/chusiang/ansible.dockerfile.git
-
Go to workspace.
[ chusiang@workstation ~ ] $ cd ansible.dockerfile/<REVERSION>
-
Bunild the image.
[ chusiang@workstation ~ ] $ docker build -t ansible . [ chusiang@workstation ~ ] $ docker build -t ansible:<REVERSION> .
-
Get image.
[ chusiang@workstation ~ ] $ docker pull chusiang/ansible
-
Run container with bash shell.
[ chusiang@workstation ~ ] $ docker run --name ansible -it chusiang/ansible bash 5e9dd71fbf02:~$
-
Enter exist container with command line.
[ chusiang@workstation ~ ] $ docker exec -it ansible bash 5e9dd71fbf02:~$ whoami ansibull
Default not use root user after
chusiang/ansible:8for security. -
Check container process.
[ chusiang@workstation ~ ] $ docker ps
Enjoy it !
- 07/13 Add
11image, the Ansible v11.0.0 release at Nov 20, 2024. - 07/13 Add
10image, the Ansible v10.0.1 release at Jun 6, 2024. - 07/13 Add
9image, the Ansible v9.0.1 release at Nov 22, 2023. - 07/12 Add
8image by multi-stage builds, the Ansible v8.0.0 release at May 31, 2023.
- 11/24 Add
7image, the Ansible v7.0.0 release at Nov 23, 2022. - 11/24 Add
6image, the Ansible v6.0.0 release at Jun 22, 2022. - 11/24 Add
5image, the Ansible v5.0.1 release at Dec 3, 2021. - 11/24 Stop maintian
2.10image and remove it, please use3image.
- 07/11: Refactor the
2.9Dockerfile with Python 3, and switchlatesttag to2.9. - 07/09: Add
4image, the Ansible v4.0.0 release at May 18 2021. - 07/09: Add
3image, the Ansible v3.0.0 release at Feb 16 2021. - 07/09: Add
2.10image, the Ansible v2.10.0 release at Aug 14 2020.
- 03/03 Add
ONBUILDrule for copy current directory to/srv/.
- 12/09: Refactor "Update the CA certificates" part for fixed "wget: error getting response: Connection reset by peer" problem. (REF)
- 11/14: Add
2.9image, the Ansible v2.9.0 release at Oct 31 2019, and add installpy-netaddrpackage. - 07/04: Add
2.8image, the Ansible v2.8.0 release at May 17 2019, and remove install the vim.
- 10/11: Add
2.7image, the Ansible v2.7.0 release at Wed Oct 3 20:26:57 2018 -0700. - 07/10: Add
2.6image, the Ansible v2.6.0 release at Thu Jun 28 14:38:38 2018 -0700. - 04/03: Add
2.5image, the Ansible v2.5.0 release at Thu Mar 22 17:09:19 2018 -0700. - 02/19: The
2.4image has upgraded the ansible from2.4.2to2.4.3. - 01/10: Refactor the architecture. Add
2.4image and add theansible-lintpackage.
MIT license from 2017-2025.