Here are some quick steps to deploy a sshd docker container. It will be based on the official CentOS 7 image from docker hub. It can be used as a light-weight ssh jump server.

First, pull the CentOS 7 image

Next, create a temp directory. Create a Dockerfile inside with the following content.

Build the docker image

And it’s ready to be ran. Start it up and forward port 22000 to port 22 inside the container

You can now ssh to the container. Password is set in the Dockerfile.


One Thought to “Deploy a sshd docker container”

Leave a Comment