Skip to content

Instantly share code, notes, and snippets.

@alferov
Last active October 19, 2017 23:53
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alferov/e577653b8a3799c3e4880a17ecbe543c to your computer and use it in GitHub Desktop.
Save alferov/e577653b8a3799c3e4880a17ecbe543c to your computer and use it in GitHub Desktop.
Docker cleanup
# Stop all running Docker containers, delete all untagged images, remove all unused volumes
docker stop $(docker ps -a -q) \
&& docker rmi $(docker images -q --filter "dangling=true") --force \
&& docker volume prune --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment