Skip to content

Instantly share code, notes, and snippets.

@uchida
Created March 5, 2016 13:11

Revisions

  1. uchida created this gist Mar 5, 2016.
    4 changes: 4 additions & 0 deletions docker-cleanup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/bin/sh

    docker ps -q -f status=exited | xargs --no-run-if-empty docker rm
    docker images -q -f dangling=true | xargs --no-run-if-empty docker rmi