Skip to content

Instantly share code, notes, and snippets.

@pythoninthegrass
Created January 29, 2017 20:45
Show Gist options
  • Select an option

  • Save pythoninthegrass/0db5ac84b5715e4e5eaaceaba0b90ff2 to your computer and use it in GitHub Desktop.

Select an option

Save pythoninthegrass/0db5ac84b5715e4e5eaaceaba0b90ff2 to your computer and use it in GitHub Desktop.
# commit docker image (container then repo/image:tag)
docker commit centos jollygoodhorsepower/centos-ps:latest
# stop all containers:
docker kill $(docker ps -q)
# remove all containers
docker rm $(docker ps -a -q)
# remove all docker images
docker rmi $(docker images -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment