Skip to content

Instantly share code, notes, and snippets.

@seveibar
Created January 21, 2017 13:27
Show Gist options
  • Save seveibar/f372740283b57ab13fb6bba97c4efd7d to your computer and use it in GitHub Desktop.
Save seveibar/f372740283b57ab13fb6bba97c4efd7d to your computer and use it in GitHub Desktop.
Cleans garbage bridge ips docker leaves around
#!/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