Skip to content

Instantly share code, notes, and snippets.

@misraX
Last active August 11, 2017 12:09
Show Gist options
  • Save misraX/b7f9fbde92f47f961b4356164ddeb187 to your computer and use it in GitHub Desktop.
Save misraX/b7f9fbde92f47f961b4356164ddeb187 to your computer and use it in GitHub Desktop.
#!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