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.

  • configuration management in Docker Containers
  • gem install fails when building an image on Docker for Windows
  • Vagrant and NGINX only works on ports other than 80
  • Docker “/bin/bash” could not be invoked when mounting an NFS file with -v on openstack
  • Easily provide a docker based solution to a lambda user
  • Docker compose wait for without sleep command
  • Is it possible to pass on additional options to docker start like (port forwarding, capabilities)
  • Rewriting URL path with Nginx, no redirect
  • Should I use docker-compose start up or run?
  • Why can't composer find a composer.json file inside my Docker container?
  • Managing resources (database, elasticsearch, redis, etc) for tests using Docker and Jenkins
  • how to do network isolation among different applications in kubernetes or in docker cluster?
  • 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.