Skip to content

Instantly share code, notes, and snippets.

@djvdorp
Forked from evanscottgray/docker_kill.sh
Created May 28, 2018 12:33
Show Gist options
  • Save djvdorp/dc48fe4f56a41a7b37dbcbf486c3d694 to your computer and use it in GitHub Desktop.
Save djvdorp/dc48fe4f56a41a7b37dbcbf486c3d694 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