Last active
January 14, 2016 13:04
-
-
Save avoinea/2ba1f023f203794e9d96 to your computer and use it in GitHub Desktop.
Docker utils
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
# Remove all non-data docker containers | |
docker rm -v $(docker ps -a | grep -v "data" | gawk '{print $1}';) | |
# Remove <none> docker images | |
docker rmi $(docker images | grep none | gawk '{print $3}';) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment