Skip to content

Instantly share code, notes, and snippets.

@ERPedersen
Created August 26, 2020 13:58
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 ERPedersen/e817f21c89816712992134d2d114705f to your computer and use it in GitHub Desktop.
Save ERPedersen/e817f21c89816712992134d2d114705f to your computer and use it in GitHub Desktop.
Reset docker environment
# Remove all containers
docker rm $(docker ps -aq)
# Remove all images
docker rmi $(docker images -q)
# Remove the following:
# - all stopped containers
# - all volumes not used by at least one container
# - all networks not used by at least one container
# - all dangling images
docker system prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment