Created
January 21, 2017 13:27
-
-
Save seveibar/f372740283b57ab13fb6bba97c4efd7d to your computer and use it in GitHub Desktop.
Cleans garbage bridge ips docker leaves around
This file contains hidden or 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
#!/bin/bash | |
ifconfig | grep "br-" | sed s/:.*// | xargs -I interface ip link set interface down | |
brctl show | grep "br-" | sed s/\s*8000.*// | xargs -I interface brctl delbr interface |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment