Created
March 16, 2017 01:35
-
-
Save parrotmac/50cd6cff6554ba7ffd9296d6f866c64d to your computer and use it in GitHub Desktop.
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
# Not my original work -- all thanks to the Stackoverflow Gods | |
#!/bin/bash | |
# remove stopped containers | |
docker rm $(docker ps -a -q) | |
# remove dangling images | |
docker rmi $(docker images -q --filter "dangling=true") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment