Useless network interface created on bridge mode? #47113
Replies: 1 comment
-
If you're interested in some of the other related networking behaviour, this resource may be of interest to you (and perhaps this one too), it provides a deep dive on details. Notably a useful table for some differences with That was all in an effort to help move the
I think you may find this comment provides information on this configuration for you? I looked into it a while back. Without digging through all that, I think I vaguely recall it having something to do with each container is added into a network namespace and the veth is paired to the docker network bridge, which bridges to the actual host interface. My linked comment mentions that early on with how a bridge has a limited number of "ports" (not network ports you may be familiar with), which as the issue identifies is the reason each bridge can only support a little over 1000 containers. |
Beta Was this translation helpful? Give feedback.
-
I am currently conducting tests to gain a deeper understanding of how Docker's network bridge functions at a fundamental level. In my testing scenario, I follow these steps (using Linux):
docker network create my_bridge_network
Upon inspection of my system, I observe the creation of a bridge:
Subsequently, by running the
ifconfig
command, I identify the instantiation of a networking interface named br-f29d3e08d992 with the IP address 172.28.0.1.Following this setup, I create a Docker container using the previously established network bridge:
docker run --network=my_bridge_network -d redis
The creation of the container results in the appearance of a network interface named veth0a4fd83.
When attempting to ping the Docker container's address (172.28.0.2) running on the bridge, I observe that the communication traverses through the veth0a4fd83 interface as well.
In light of this, I am curious about the purpose of Docker in creating the br-f29d3e08d992 network interface alongside the bridge when the bridge is initially established.
Beta Was this translation helpful? Give feedback.
All reactions