Skip to content

Instantly share code, notes, and snippets.

Last active Oct 19, 2017
What would you like to do?
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