Skip to content

Instantly share code, notes, and snippets.

@Ibmurai
Created January 19, 2017 12:31
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 Ibmurai/6f158bce21c6ce31351315fa81747193 to your computer and use it in GitHub Desktop.
Save Ibmurai/6f158bce21c6ce31351315fa81747193 to your computer and use it in GitHub Desktop.
Non destructive docker cleanup
#!/bin/bash
docker rm $(docker ps -aq --filter status=exited)
docker rmi $(docker images -f "dangling=true" -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment