Skip to content

Instantly share code, notes, and snippets.

@ddubson
Last active May 3, 2016 17:37
Show Gist options
  • Save ddubson/4675b065eb19035f44769639c746293b to your computer and use it in GitHub Desktop.
Save ddubson/4675b065eb19035f44769639c746293b to your computer and use it in GitHub Desktop.
Docker advanced commands
###
docker run -i --dns=8.8.8.8 --name=mycontainer1 -i ubuntu:latest
###
docker run -t --dns=8.8.8.8 --dns-search=mydomain.local --volume /local_vol --volume /home/user:/remote_vol --name=mycontainer3 -i ubuntu:latest /bin/bash
### Mnt volume hosting basic web template
docker run --name=webtest -v /home/ddubson/docker/dockerwww:/var/www/html -it centos6:baseweb /bin/bash
###
docker run -d -i -t --name=devweb1 -p 8081:80 -v /home/ddubson/docker/dockerwww:/var/www/html centos6:finalweb1 /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment