Skip to content

Instantly share code, notes, and snippets.

@GeorgiyDemo
Forked from evanscottgray/docker_kill.sh
Created June 12, 2018 18:08
Show Gist options
  • Save GeorgiyDemo/2dd141050af887f0b4fd95f28c61dbf6 to your computer and use it in GitHub Desktop.
Save GeorgiyDemo/2dd141050af887f0b4fd95f28c61dbf6 to your computer and use it in GitHub Desktop.
kill all docker containers at once...
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment