63

I'm using docker via

# service docker start

This creates a docker0 bridge. However using

# service docker stop

doesn't remove this bridge.

How do I get rid of it? I'm not sure if I missed something here.

1
105

Just delete it:

ip link del docker0

(The old way, specific to bridges: brctl delbr docker0)

7
  • 6
    That was step one, but the NetworkManager still had the bridge. So calling nmcli connection delete docker0 resolved the issue completely. – tynn Nov 3 '15 at 12:11
  • 3
    Will this solution prevent Docker from starting correctly after doing service docker start or will docker create the bridge again? – AlikElzin-kilaka May 14 '17 at 12:05
  • 1
    No you don't. iproute2 is perfectly capable of doing the same. – user1686 Jul 15 '17 at 7:46
  • 5
    @AlikElzin-kilaka the bridge is created again when you start docker – Fabian Schmengler Oct 19 '18 at 6:21
  • 1
    For the googlers: Check command docker network ls and docker network rm <ID>. The ID is the same as in the br- or bridge name! – uav Jan 9 '20 at 18:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.