This repository contains my CentOS bastion image.
The first step is to pull the image.
docker pull busybox42/bastion-docker-centos
Now that we have the image busybox42/bastion-docker-centoss we can create the container with a few parameters.
docker run --name admin -p 22:22 -h admin.myhost.tld busybox42/bastion-docker-centos
Name the container, expose port 22 for ssh and set a hostname.
You can connect to the container with this command:
docker exec -it bind bash
Update the config as necessary.