admin/ April 22, 2017/ Docker, Linux/ 0 comments


A minimal Docker image based on Alpine Linux with a complete package index and only 5 MB in size!

I have prepared this Dockerfile to enable SSH on the alpine docker container. That is completely working good. The above Dockerfile has root enabled in the ssh server as well as run ssh on the time of docker container creation.

How to run the docker container with ssh ?

I have exposed the port 22 in the Dockerfile. You can use the below command to run the docker container.

To connect the docker container via ssh.

Use Password: root

Share this Post

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.