Docker – Quick Reference

A quick reference guide to common Docker commands. # to pull a container image docker pull nginx # to make container – persistant container that mounts conf and webroot docker run –name repo-nginx -p 80:80 –restart unless-stopped -v /data/scratch/repo-nginx:/usr/share/nginx/html -v /data/docker/repo-nginx/default.conf:/etc/nginx # Remove all stopped containers docker system prune -f #to all list containers docker […]