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 […]

Vagrant setup – centos7 / docker

# install docker yum install -y yum-utils yum-config-manager –add-repo yum install docker-ce # configure docker systemctl enable docker systemctl start docker # configuring current user in docker group sudo usermod -aG docker $(whoami) # install vagrant yum install -y