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

add support for gw_priority, enable_ipv4 (requires docker v28.0) #12570

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Feb 21, 2025

relates to:

This adds support for the GwPriority API field in API v1.48 (docker v28.0).
It can be set on both docker container run and docker network connect.

This option is used by the Engine to determine which network provides
the default gateway for a container.

It also adds support for enable_ipv4, which allows enabling (default)
or disabling IPv4 address assignment for a network.

What I did

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@thaJeztah thaJeztah requested a review from a team as a code owner February 21, 2025 14:40
@thaJeztah thaJeztah requested review from ndeloof and glours February 21, 2025 14:40
@@ -1325,6 +1328,7 @@ func (s *composeService) resolveOrCreateNetwork(ctx context.Context, project *ty
Attachable: n.Attachable,
IPAM: ipam,
EnableIPv6: n.EnableIPv6,
EnableIPv4: n.EnableIPv4,
Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, missed there were more, I should probably mention this one as well; let me see if I can find a PR with a description

Copy link
Member Author

Choose a reason for hiding this comment

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

cc @robmry if the description looks good 🙈

This adds support for the GwPriority API field in API v1.48 (docker v28.0).
It can be set on both docker container run and docker network connect.

This option is used by the Engine to determine which network provides
the default gateway for a container.

It also adds support for enable_ipv4, which allows enabling (default)
or disabling IPv4 address assignment for a network.

Co-authored-by: Nicolas De Loof <[email protected]>
Signed-off-by: Nicolas De Loof <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the add_gateway_priority branch from 3876a65 to ad1fb0a Compare February 21, 2025 14:46
@thaJeztah thaJeztah changed the title add support for gateway-priority (requires docker v28.0) add support for gw_priority, enable_ipv4 (requires docker v28.0) Feb 21, 2025
@ndeloof ndeloof enabled auto-merge (rebase) February 21, 2025 14:50
@ndeloof ndeloof merged commit da2eff4 into docker:main Feb 21, 2025
25 checks passed
@thaJeztah thaJeztah deleted the add_gateway_priority branch February 21, 2025 14:54
@thaJeztah
Copy link
Member Author

Thanks everyone!

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

Successfully merging this pull request may close these issues.

4 participants