Remove docker0 bridge

74,637

Just delete it:

ip link del docker0

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

Share:
74,637

Related videos on Youtube

tynn
Author by

tynn

Updated on September 18, 2022

Comments

  • tynn
    tynn almost 2 years

    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.

  • tynn
    tynn over 8 years
    That was step one, but the NetworkManager still had the bridge. So calling nmcli connection delete docker0 resolved the issue completely.
  • dragon788
    dragon788 over 8 years
    Thanks for the note @tynn, definitely useful when developing from a system with a GUI.
  • AlikElzin-kilaka
    AlikElzin-kilaka about 7 years
    Will this solution prevent Docker from starting correctly after doing service docker start or will docker create the bridge again?
  • Mohammed Noureldin
    Mohammed Noureldin almost 7 years
    This is not an old way, you still need brctl package to do any bridges process.
  • user1686
    user1686 almost 7 years
    No you don't. iproute2 is perfectly capable of doing the same.
  • Fabian Schmengler
    Fabian Schmengler over 5 years
    @AlikElzin-kilaka the bridge is created again when you start docker
  • uav
    uav over 4 years
    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!