Skip to content

Instantly share code, notes, and snippets.

@uchida
Created March 5, 2016 13:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uchida/bca005bcebc135fa4ef3 to your computer and use it in GitHub Desktop.
Save uchida/bca005bcebc135fa4ef3 to your computer and use it in GitHub Desktop.
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment