# Show what would be removed first
docker system df
# Safe pruning — dangling (untagged) images only
docker image prune -f
# Aggressive — remove ALL unused images, not just dangling
docker image prune -a -f
# Stopped containers
docker container prune -f
# Build cache (newer Docker)
docker builder prune -af
# Everything not in use (most aggressive, most space recovered)
docker system prune -af --volumes
# Crontab entry for nightly cleanup
# 0 3 * * * docker system prune -af --filter "until=168h" >/var/log/docker-prune.log 2>&1
Create a free account and build your private vault. Share publicly whenever you want.