Skip to content

Instantly share code, notes, and snippets.

@msalahz
Forked from evanscottgray/docker_kill.sh
Created April 26, 2019 11:04
Show Gist options
  • Save msalahz/b2ca94f340bccf33fc0d2a5198420f8e to your computer and use it in GitHub Desktop.
Save msalahz/b2ca94f340bccf33fc0d2a5198420f8e 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