Skip to content

Instantly share code, notes, and snippets.

View tonym128's full-sized avatar

Tony Mamacos tonym128

View GitHub Profile
@tonym128
tonym128 / docker-rm-images.md
Last active October 11, 2018 18:19 — forked from alferov/docker-rm-images.md
Remove all (untagged) images and containers from Docker
# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")

# System Prune
# WARNING! This will remove: