Created
September 1, 2017 02:14
-
-
Save osiyuk/12b223532eb8ac21b25283159c3147b1 to your computer and use it in GitHub Desktop.
free up disk space after docker garbage
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
#!/bin/bash | |
GARBAGE="/var/lib/docker/aufs/diff" | |
du -hd 1 $GARBAGE | sort -hrk 1 | head -25 | |
find $GARBAGE -maxdepth 1 -name *-removing -exec rm -rf '{}' \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker system prune
may be a simple solution :D