Created
February 2, 2016 14:42
-
-
Save cmattoon/eb6df9d886084aebaaa3 to your computer and use it in GitHub Desktop.
Docker Cleanup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker rm $(docker ps --no-trunc -aq) | |
docker rmi $(docker images -q --filter "dangling=true") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment