Created
February 17, 2015 22:16
-
-
Save kevgathuku/a13096b7288d04180d4e to your computer and use it in GitHub Desktop.
Remove docker temporary built images
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 | |
| # Source: http://blog.stefanxo.com/2014/02/clean-up-after-docker/ | |
| docker images -f dangling=true -q | xargs -r docker rmi -f #Adding -f forces removal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment