-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
[19.03 backport] Set the bip network value as the subnet #40565
[19.03 backport] Set the bip network value as the subnet #40565
Conversation
Dont assign the --bip value directly to the subnet for the default bridge. Instead use the network value from the ParseCIDR output Addresses: moby#40392 Signed-off-by: Arko Dasgupta <arko.dasgupta@docker.com> (cherry picked from commit f800d5f) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@AkihiroSuda ptal |
@AkihiroSuda @arkodg ptal |
We are having some problems with k8s after upgrading docker-ce to a version that includes this change. If I'm reading this correctly, all of our hosts running docker require the --bip config to be changed from the bridge IP to the bridge network, e.g. Is this right? |
edit : @tulanian you want to continue using |
@arkodg , ok, to confirm, no change is needed to the bip config because of this commit? Btw, the problem we're having with k8s is with pods that run docker-in-docker to build images. We're having to add the --network=host config to the pod-based dockerd or traffic won't exit the pod. |
that's right @tulanian no change is needed regarding k8s traffic, you are bypassing CNI by making |
@arkodg It was working without --network=host and were trying to determine what broke it. An upgrade to docker-ce is one possibility. Thanks for the clarification on the bip config. |
backport of #40497
fixes #40392
Dont assign the --bip value directly to the subnet
for the default bridge. Instead use the network value
from the ParseCIDR output
- Description for the changelog