Skip to content

Instantly share code, notes, and snippets.

@generalistcodes
Forked from evanscottgray/docker_kill.sh
Created June 30, 2022 07:30
Show Gist options
  • Save generalistcodes/546947b0bb14882d7044bcb252ab6ab9 to your computer and use it in GitHub Desktop.
Save generalistcodes/546947b0bb14882d7044bcb252ab6ab9 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
@generalistcodes
Copy link
Author

Kill all running docker containers...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment