Docker Commands
# Create a password
sudo passwd root
# Server setup
apt-get install openssh-server
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults
chmod a-w /etc/ssh/sshd_config.factory-defaults
nano /etc/ssh/sshd_config
restart ssh
# or
service ssh restart
# Ubuntu 15.04 +
systemctl restart ssh
# Service start
service nginx start
# Find ip address of containers
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <container id>
# Remove stopped containers
docker rm $(docker ps -a -q)