Created
October 3, 2019 15:31
-
-
Save umrashrf/ed7873bb2670d6e87ffa7b110be6f3a8 to your computer and use it in GitHub Desktop.
Delete all docker images except listed by names
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
docker rmi -f $(docker images | grep -v -E '^python|^postgres|^redis|^scrapinghub' | grep -oE '[a-z0-9]{12}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment