Skip to content

Instantly share code, notes, and snippets.

@demagu
Last active May 3, 2018 13:06
Show Gist options
  • Save demagu/06f0b2499972ca46e067b3bf5ef521cc to your computer and use it in GitHub Desktop.
Save demagu/06f0b2499972ca46e067b3bf5ef521cc to your computer and use it in GitHub Desktop.
# Delete all Docker containers
# Must be run first because images are attached to containers
docker rm -f $(docker ps -a -q)
# Delete all Docker images
docker rmi -f $(docker images -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment