Skip to content

Instantly share code, notes, and snippets.

@wfaler
Created March 4, 2015 22:06
Show Gist options
  • Save wfaler/de20bd43c14f22dedf7f to your computer and use it in GitHub Desktop.
Save wfaler/de20bd43c14f22dedf7f to your computer and use it in GitHub Desktop.
docker-notes
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