Created
March 4, 2015 22:06
-
-
Save wfaler/de20bd43c14f22dedf7f to your computer and use it in GitHub Desktop.
docker-notes
This file contains hidden or 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 rmi [image id] # remove image | |
docker ps -a # list all images | |
docker rm [container id/name] # remove container | |
docker stop [container id/name] | |
# start docker, bind container port 4000 to 4000 on host, use host network to access container (only in dev!) | |
docker run -p 4000:4000 --name [name] --net=host -d [image name] [command] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment