Last active
May 30, 2017 05:42
-
-
Save furusiyya/29c29fe77bec02340b733a474e2374b5 to your computer and use it in GitHub Desktop.
Remove stopped containers and untagged images created due to unsuccessful builds (Images with Repository: <none> && Tag: <None>)
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/bash | |
docker rmi $(docker images | grep "^<none>" | awk "{print $3}"); | |
docker rm $(docker ps -a -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment