Created
October 19, 2024 18:18
-
-
Save sukhoy94/79eae941506f1c7e9310d83ea352b3a6 to your computer and use it in GitHub Desktop.
Docker stuff
This file contains 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
Sometimes ago I realized that ma /var/lib/docker is ~300GB, so I needed to take some steps :D | |
Below is a list of some useful docker commands to clean disk space | |
1. Remove Unused Docker Containers | |
docker container prune | |
2. Remove Unused Docker Images | |
docker image prune -a | |
3. Remove Unused Docker Volumes | |
docker volume prune | |
4. Clean Up Docker Build Cache | |
docker builder prune | |
5. Remove All Unused Data | |
docker system prune -a | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment