Skip to content
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

Merged

Conversation

thaJeztah
Copy link
Member

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

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 <[email protected]>
(cherry picked from commit f800d5f)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Copy link
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah modified the milestones: 19.03.8, 19.03.9 Mar 11, 2020
@thaJeztah
Copy link
Member Author

@AkihiroSuda ptal

@thaJeztah
Copy link
Member Author

@AkihiroSuda @arkodg ptal

@AkihiroSuda AkihiroSuda merged commit 47a6d9b into moby:19.03 Apr 17, 2020
@thaJeztah thaJeztah deleted the 19.03_backport_fix_bip_subnet_config branch April 17, 2020 08:41
@tulanian
Copy link

tulanian commented Aug 26, 2020

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.
--bip=172.16.0.1/16
to
--bip=172.16.0.0/16

Is this right?

@arkodg
Copy link
Contributor

arkodg commented Aug 26, 2020

edit : @tulanian you want to continue using 172.16.0.1/16 if you want the bridge-ip to be 172.16.0.1, this should only affect the Subnet value in the bridge configuration (sets it to 172.16.0.0/16 instead of 172.16.0.1/16 which is not valid)

@tulanian
Copy link

tulanian commented Aug 26, 2020

@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.

@arkodg
Copy link
Contributor

arkodg commented Aug 26, 2020

that's right @tulanian no change is needed

regarding k8s traffic, you are bypassing CNI by making --network=host , its probably not related to docker

@tulanian
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants