-
Notifications
You must be signed in to change notification settings - Fork 879
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
needDefaultGW should not return true for remote drivers #775
Comments
@jc-m needDefaultGW() returns True only if none of the endpoints connected to a container provide a Gateway. In the JoinResponse if you set the Gateway libnetwork will not connect the container to the default gateway bridge. The Gateway IP (could be the gateway provided by IPAM) will be setup as the default gatway; and the packets will get dropped if the driver doesn't handle the routing. Can you give it a try ? |
I tried to add a gateway, but my local IP/network is 10.1.1.1/32 and if I add a gateway, I have issues like:
I still think the daemon tries to either add a default route.
|
Closed by #778 |
This code:
assumes that a default gateway can be provided if the driver is remote. This cause many issues:
For example, :
if the content of the join response is :
The daemon takes additional liberties if you just return:
in which case it creates a bridged interface anyway on the default docker network which can be a totally different network.
The text was updated successfully, but these errors were encountered: