Remove docker0 bridge
74,637
Just delete it:
ip link del docker0
(The old way, specific to bridges: brctl delbr docker0
)
Related videos on Youtube
Author by
tynn
Updated on September 18, 2022Comments
-
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.
-
Ondra Žižka over 6 yearsSee also serverfault.com/questions/642981/…
-
-
tynn over 8 yearsThat was step one, but the
NetworkManager
still had the bridge. So callingnmcli connection delete docker0
resolved the issue completely. -
dragon788 over 8 yearsThanks for the note @tynn, definitely useful when developing from a system with a GUI.
-
AlikElzin-kilaka about 7 yearsWill this solution prevent Docker from starting correctly after doing
service docker start
or will docker create the bridge again? -
Mohammed Noureldin almost 7 yearsThis is not an old way, you still need brctl package to do any bridges process.
-
user1686 almost 7 yearsNo you don't. iproute2 is perfectly capable of doing the same.
-
Fabian Schmengler over 5 years@AlikElzin-kilaka the bridge is created again when you start docker
-
uav over 4 yearsFor the googlers: Check command
docker network ls
anddocker network rm <ID>
. The ID is the same as in the br- or bridge name!