Last active
August 11, 2017 12:09
-
-
Save misraX/b7f9fbde92f47f961b4356164ddeb187 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
#!bin/bash | |
docker stop $(echo $(docker container ps | awk ' | |
{ | |
i = 1 | |
# ingore CONTAINER ID from the output | |
if ( ! /^CONT/ ) | |
{ | |
print $i | |
} | |
}')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment