ansible-managed-node.dockerfile
ansible-managed-node.dockerfile copied to clipboard
Building the Docker image with run the OpenSSH daemon and Python for Ansible.
Docker image: Ansible Managed Node
A Docker image of run the OpenSSH daemon and Python for Ansible.
WARNING: This docker image can be access with ssh by chusiang/ansible-jupyter image. Do not use it on the Production Environment, please.
Supported tags and respective Dockerfile links
- ~~
alpine-3.4~~ (alpine-3.4/Dockerfile) alpine-3.6(alpine-3.6/Dockerfile)alpine-3.7,latest(alpine-3.7/Dockerfile)archlinux(archlinux/Dockerfile)centos-6(centos-7/Dockerfile)centos-7(centos-7/Dockerfile)- ~~
debian-7~~ (debian-7/Dockerfile) debian-8(debian-8/Dockerfile)debian-9(debian-9/Dockerfile)- ~~
gentoo~~ (gentoo/Dockerfile) - ~~
opensuse-42.1~~ (opensuse-42.1/Dockerfile) opensuse-42.2(opensuse-42.2/Dockerfile)opensuse-42.3(opensuse-42.3/Dockerfile)- ~~
ubuntu-14.04~~ (ubuntu-14.04/Dockerfile) ubuntu-16.04(ubuntu-16.04/Dockerfile)ubuntu-18.04(ubuntu-18.04/Dockerfile)
Account
root user:
- username:
root - password:
root
sudo user:
- username:
docker - password:
docker
Build image
-
Get this project.
$ git clone https://github.com/chusiang/ansible-managed-node.dockerfile.git -
Go to workspace.
$ cd ansible-managed-node.dockerfile/ -
Bunild the image.
$ docker build -t chusiang/ansible-managed-node .
Run container
-
Get image.
$ docker pull chusiang/ansible-managed-node -
Run the container with daemon mode.
$ docker run --name ansible-managed-node -P -d chusiang/ansible-managed-node be8a15b9d4da5d24610c1fc738cb13086f01101e90f94640360d8d84892de772 -
Check container process.
$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES be8a15b9d4da chusiang/ansible-managed-node "/usr/sbin/sshd -D" 9 minutes ago Up 9 minutes 0.0.0.0:32777->22/tcp ansible-managed-node -
Enter container with command line.
$ docker exec -it ansible-managed-node bash bash-4.3#
Enjoy it !
History
2018
- 06/18 Add new images of
alpine-3.7,ubuntu-18.04, enable the sudo no password in each images. Stop automated build images ofalpine-3.4,debian-7,ubuntu-14.04.
License
Copyright (c) chusiang from 2016-2017 under the MIT license.