Skip to content

Instantly share code, notes, and snippets.

@osiyuk
Created September 1, 2017 02:14
Show Gist options
  • Select an option

  • Save osiyuk/12b223532eb8ac21b25283159c3147b1 to your computer and use it in GitHub Desktop.

Select an option

Save osiyuk/12b223532eb8ac21b25283159c3147b1 to your computer and use it in GitHub Desktop.

Revisions

  1. osiyuk created this gist Sep 1, 2017.
    4 changes: 4 additions & 0 deletions docker-gc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/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 '{}' \;