64

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

1 Answer 1

107

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, 2015 at 12:11
  • 4
    Will this solution prevent Docker from starting correctly after doing service docker start or will docker create the bridge again? May 14, 2017 at 12:05
  • 1
    No you don't. iproute2 is perfectly capable of doing the same.
    – user1686
    Jul 15, 2017 at 7:46
  • 5
    @AlikElzin-kilaka the bridge is created again when you start docker Oct 19, 2018 at 6:21
  • 2
    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, 2020 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.