Created
December 28, 2025 15:34
-
-
Save tot-ra/78e9dcaf7061bd121ded40418400b55f to your computer and use it in GitHub Desktop.
Why is docker taking so much space?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # List all images sorted by size (largest first) | |
| docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}" | sort -k3 -hr | |
| # Get total disk usage breakdown | |
| docker system df -v | |
| # Container disk usage | |
| docker ps --size | |
| # Remove dangling images | |
| docker image prune -f | |
| # Remove unused containers, networks, images | |
| docker system prune -a --volumes | |
| # More aggressive - remove all unused (CAREFUL!) | |
| docker system prune -a --volumes -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment