Skip to content

Instantly share code, notes, and snippets.

@fhferreira
Forked from evanscottgray/docker_kill.sh
Created October 30, 2019 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fhferreira/1aa2048da7aeae9c3448fc06f5de553e to your computer and use it in GitHub Desktop.
Save fhferreira/1aa2048da7aeae9c3448fc06f5de553e 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