Skip to content

Instantly share code, notes, and snippets.

@brydavis
Last active August 14, 2019 22:27
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 brydavis/c04606dbba2dcee2ac59b86e21d98747 to your computer and use it in GitHub Desktop.
Save brydavis/c04606dbba2dcee2ac59b86e21d98747 to your computer and use it in GitHub Desktop.
Removes all Docker images and containers
# Destroy all your images and containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
# Deleting those images that are referenced in repositories
docker rmi $(docker images -q) --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment