Last active
October 20, 2015 08:39
-
-
Save chbatey/3df17733545ac2015b22 to your computer and use it in GitHub Desktop.
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
Find all containers that match the term: | |
TERM=hello; docker ps -a | grep $TERM | awk '{print $1}' | |
Delete all containers that match a term: | |
TERM=hello; sudo docker rm $(sudo docker ps -a | grep $TERM | awk '{print $1}') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment