Last active
September 2, 2020 14:41
-
-
Save canthis/41533961cfacd83a9d2d3a0b4c3efe13 to your computer and use it in GitHub Desktop.
Stop Docker containers via fuzzy matching on the container name
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
docker ps --format '{{.Names}}' | grep "keyword" | awk '{print $1}' | xargs -I {} docker stop {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment