This is an extension of centos:centos7 base image and includes supervisor and sshd.
Supervisor allows you to launch multiple processes in a container
ssh allow you to take access of the container. (userid; paswd--> root ; root)
Building the Image from Docker file
sudo docker build -t mursilsayed/centos7-ssh-supervisor .
Launching the container
You can create a container of this image by using the following command
sudo docker run -itd -p 0.0.0.0:2222:22 mursilsayed/centos7-ssh-supervisor
Accessing the container via ssh from your host machine
ssh root@localhost -p 2222