Created
December 2, 2013 21:34
-
-
Save kevinswiber/7759460 to your computer and use it in GitHub Desktop.
Kill Docker containers and reset iptables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker ps | grep node | awk '{ print $1 }' | xargs docker stop | |
docker ps -a | grep node | awk '{ print $1 }' | xargs docker rm | |
sudo iptables -S | grep docker0.*ACCEPT | awk '{ gsub("-A", "sudo iptables -D", $0); print $0 }' | xargs -0 /bin/bash -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment