How to delete interface docker0

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.

  • go-dockerclient `UploadToContainer` tar examples
  • Creating a host directory as a data volume in Dockerfile
  • Docker: Push data container onto Docker Hub
  • Pre Configured Environment variables in Jenkins
  • Unable to push a docker image to the docker hub
  • Docker communication between two containers with Java
  • How can I keep a docker debian container open?
  • ps command cannot connect to the docker daemon even after adding user to docker group [duplicate]
  • Can't get localhost to connect to docker inside vagrant
  • Failed to run AzureAD Module PowerShell commands inside windows container
  • How to forward eclipse in a docker container through a linux proxy?
  • What is the best way to iterate while building a docker container?
  • One Solution collect form web for “How to delete interface docker0”

    By default, the Docker server creates and configures the host system’s docker0 interface as an Ethernet bridge inside the Linux kernel that can pass packets back and forth between other physical or virtual network interfaces so that they behave as a single Ethernet network.

    Look at Understand Docker container networks and Customize the docker0 bridge

    When you install Docker, it creates three networks automatically. You can list these networks using the docker network ls command:

    $ docker network ls

    Historically, these three networks (bridge, none, host) are part of Docker’s implementation. When you run a container you can use the –network flag to specify which network you want to run a container on. These three networks are still available to you.

    The bridge network represents the docker0 network present in all Docker installations. Unless you specify otherwise with the docker run –network= option, the Docker daemon connects containers to this network by default. You can see this bridge as part of a host’s network stack by using the ifconfig command on the host.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.