apt-get update
apt-get install ssh vim
passwd
Give a passwordvim /etc/ssh/sshd_config
change the line 'PermitRootLogin prohibit-password' to 'PermitRootLogin yes'service ssh start
- Come out of the container & run
docker ps -a
. Copy the running container id - run in a different terminal
docker commit