New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Gateway field in bridge
network inspect
#26799
Comments
We should check if this is a regression in 1.12, or already present in 1.11 (if not, possibly try to fix it for 1.12.2) |
Issue is there in |
Thanks for the extra info; not necessarily needed for 1.12.2 then |
I'm not able to see gateway field in the user defined bridge network. Docker version:
Note: I'm using docker on mac machine. |
We have similar issue when using Docker Compose on TravisCI. It seems that the Full log: https://travis-ci.org/avast/marathon-vault-plugin/jobs/275438988#L720 |
Seeing this on
A |
Are there any further additions?
|
The same issue on Ubuntu 16.04 LTS with Docker version 18.06.1-ce, build e68fc7a. It's fixed after run commands below: sudo systemctl daemon-reload
sudo systemctl stop docker
sudo systemctl start docker |
When a build is running, the stmp is the localhost. Since Docker builds, the localhost is the container which does not catch port 25 smtp. Mails are lost in the limbo. With this commit, the default gateway of the Docker network is used as smtp host for the builds. It's the responsability of the runbot host to catch smtp traffic from the container. This bridge interface exists by default on a system where Docker is running. However, Docker is affected by this issue: moby/moby#26799 The first time the Docker daemon is installed, the Gateway is not defined on the bridge interface. When the Docker daemon is restarted, the gateway is correctly defined. Pay attention that restarting the Docker daemon will kill all the running/testing builds.
When a build is running, the stmp is the localhost. Since Docker builds, the localhost is the container which does not catch port 25 smtp. Mails are lost in the limbo. With this commit, the default gateway of the Docker network is used as smtp host for the builds. It's the responsability of the runbot host to catch smtp traffic from the container. This bridge interface exists by default on a system where Docker is running. However, Docker is affected by this issue: moby/moby#26799 The first time the Docker daemon is installed, the Gateway is not defined on the bridge interface. When the Docker daemon is restarted, the gateway is correctly defined. Pay attention that restarting the Docker daemon will kill all the running/testing builds.
I am seeing this same issue in Docker in Docker. TestContainers depends on their being a gateway defined, and can't route traffic correctly when it's missing. I have to relaunch the docker daemon before running my Testcontainer tests. |
just started seeing this on amzn linux 2 |
This issue is still present in Docker 19.03.2 on Linux. Is there any way to solve this without restarting the service on first run? |
Getting this on Debian Buster, docker version Server: Docker Engine - Community After investiguig a little bit, its looks like everything is registered properly, I can look in the file /var/lib/docker/network/file/local-kv.db and I see a json with looks like the expected value from the docker network inspect. Are you just missing a lookup in the database ? |
I have seen this now with the latest docker. I am surprised it is nearly 4 years old issue. |
have the same issue
|
What is the motivation for this PR? There is a docker bridge network issue that would randomly cause "docker inspect bridge" to not show 'Gateway' IP. Reference: moby/moby#26799 How did you do it? We could use the 'Subnet' entry for the test purpose. How did you verify/test it? Run test against device exhibiting the docker bridge network issue.
What is the motivation for this PR? There is a docker bridge network issue that would randomly cause "docker inspect bridge" to not show 'Gateway' IP. Reference: moby/moby#26799 How did you do it? We could use the 'Subnet' entry for the test purpose. How did you verify/test it? Run test against device exhibiting the docker bridge network issue.
This comment might not be adding much, but I just wanted to contribute my reproducibility scenario. Using docker-ce 20.10.14 and compose 2.3.3 on Ubuntu 20.04 and this
I run
Then I look at the created Docker network (note the empty IPv6 Gateway)
But after a
|
I seems this was a bug in docker compose, that should now be fixed: docker/compose@41b3967 |
First time daemon is booted (no
docker0
bridge present, no or empty/var/lib/docker/network/files/local-kv.db
file), IPAM.Config structure in network inspect output will not contain the Gateway fieldVerified problem exists in
1.11.2
,1.12.0
and in current master (1.13.0
).Given the
IPAM.Config
filed currently used to carry both configuration and operational data, the gateway address should always be there.Note:
A daemon reload will fix the issue
The text was updated successfully, but these errors were encountered: