Skip to content

Instantly share code, notes, and snippets.

@RyanFrench
Last active April 1, 2016 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanFrench/ebb488d0753c2143595ab48dd8af549b to your computer and use it in GitHub Desktop.
Save RyanFrench/ebb488d0753c2143595ab48dd8af549b to your computer and use it in GitHub Desktop.
Docker Cleanup
# Kill all running containers
docker kill $(docker ps -q)
# Remove all containers
docker rm $(docker ps -a -q)
# Remove all dangling images
docker rmi $(docker images -q --filter "dangling=true")
# Remove all images
docker rmi $(docker images -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment