Last active
December 21, 2015 16:06
-
-
Save petruisfan/1c13256ee7821f8e4b04 to your computer and use it in GitHub Desktop.
Cleanup docker containers and <none> images.
This file contains 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 -v $(docker ps -aq) | |
docker rmi $(docker images | grep "<none>" | tr -s " " | cut -f 3 -d " ") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment