Created
September 15, 2017 12:30
-
-
Save SensibleWood/e85ce6ae5a9d7a749e83091b72de38cf to your computer and use it in GitHub Desktop.
Delete all Docker images from local repository
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
#!/usr/bin/env bash | |
docker images | awk '$1 != "REPOSITORY" { print $1 }' | xargs docker rmi -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment