Last active
May 3, 2016 17:37
-
-
Save ddubson/4675b065eb19035f44769639c746293b to your computer and use it in GitHub Desktop.
Docker advanced commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
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