Created
May 20, 2016 14:50
-
-
Save bndabbs/79980466bf233f211a6af28c0a4ca1be to your computer and use it in GitHub Desktop.
Delete all docker images. Add sudo if you aren't a member of the docker group
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 | |
images=`docker images | awk '{print $3}' |grep -v IMAGE` | |
for i in $images; do docker rmi $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment