Skip to content

Instantly share code, notes, and snippets.

@alferov

alferov/docker-cleanup.md

Last active Oct 19, 2017
Embed
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