I would like to remove the interface docker0. It would be better to avoid creating the interface docker0 when starting the service and using directly the eth0.
To delete an alias interface use ifconfig eth0:0 down. Note: for every scope (i.e. same net with address/netmask combination) all aliases are deleted, if you delete the first (primary). up This flag causes the interface to be activated.
docker0 is a virtual bridge interface created by Docker. It randomly chooses an address and subnet from a private defined range. All the Docker containers are connected to this bridge and use the NAT rules created by docker to communicate with the outside world.
docker0 is a Linux bridge and veth068f is an interface on that bridge. Docker picks a subnet not currently in use on the machine and assigns an IP in that range to the docker0 bridge (these are just the default settings).
To remove one or more Docker networks, use the docker network ls command to find the ID of the networks you want to remove. If you get an error similar to the one shown below, it means that an existing container uses the network. To remove the network, you have to remove the container first.
To delete the interface, use:
ip link delete docker0
You may require sudo
privilege.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With