Summary of useful commands ========================== Build a Dockerfile:: docker build -t Run a bash shell using an image:: docker run --name -it bash Run a container forever and connect to it:: docker run --name -d docker exec -it bash Run an existing container that was stopped (with the same parameters as in the original run):: docker start Create a secret:: docker secret create -c cert_www_mysite.com www_mysite_com.pem Swarm ----- Troubleshoot your services with:: docker service ls # list services docker service logs -f # see service logs docker service ps --no-trunc # useful is service is not running Monitor and debug ----------------- Debug:: docker inspect docker logs Monitor:: docker stats docker top