Created
August 19, 2018 19:47
-
-
Save tomaszklim/2e784d029e177407bcd4d1b810d11b0a to your computer and use it in GitHub Desktop.
Clear old Docker images (works with all Docker versions)
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/sh | |
docker rmi $(docker images | grep "^<none>" | awk '{print $3}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment