Skip to content

Instantly share code, notes, and snippets.

@micrub
Created August 23, 2018 00:10
Show Gist options
  • Select an option

  • Save micrub/79b23ba3cbc5de36d5acf1a52895224b to your computer and use it in GitHub Desktop.

Select an option

Save micrub/79b23ba3cbc5de36d5acf1a52895224b to your computer and use it in GitHub Desktop.
killall docke containers
#!/bin/bash -x
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