Dangling Images & Orphan Volumes
DK · Common Mistakessyntax
# Check dangling images:
docker images -f dangling=true
# Check orphan volumes:
docker volume ls -f dangling=trueexample
# Frequent rebuilds leave untagged images:
docker images -f dangling=true
# REPOSITORY TAG SIZE
# <none> <none> 450MB
# <none> <none> 450MB
# Clean them:
docker image prune
docker volume pruneNote Every time you rebuild with the same tag, the old image loses its tag and becomes <none>:<none>. These pile up fast. Volumes from removed containers also linger. Schedule regular prune commands or add them to your CI cleanup steps.