Skip to content

Instantly share code, notes, and snippets.

@adriagalin
Forked from osiyuk/docker-gc
Created February 6, 2018 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adriagalin/6a859dec6d5c8d2ddc6b4f86d59ee475 to your computer and use it in GitHub Desktop.
Save adriagalin/6a859dec6d5c8d2ddc6b4f86d59ee475 to your computer and use it in GitHub Desktop.
free up disk space after docker garbage
#!/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