Skip to content

Instantly share code, notes, and snippets.

@RyanFrench
Last active April 1, 2016 08:35
Embed
What would you like to do?
Docker Cleanup
# Kill all running containers
docker kill $(docker ps -q)
# Remove all containers
docker rm $(docker ps -a -q)
# Remove all dangling images
docker rmi $(docker images -q --filter "dangling=true")
# Remove all images
docker rmi $(docker images -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment