Last active
June 12, 2017 18:30
-
-
Save sharepointoscar/25eec81e62c44d6590a0e4e9aceeb498 to your computer and use it in GitHub Desktop.
Useful Docker Commands to clean up your environment.
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 images based on a pattern | |
docker images | grep "pattern" | awk '{print $1}' | xargs docker rm | |
# remove all images | |
docker rmi $(docker images -a -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment