Merged
Conversation
ccd805b to
09e458d
Compare
09e458d to
a5d89b1
Compare
It can only be set on a "--internal" network, and the only difference is that no address is assigned to the bridge. So, there's no route to a host address. Signed-off-by: Rob Murray <[email protected]>
a5d89b1 to
9fdcde7
Compare
akerouanton
approved these changes
Feb 4, 2025
3 tasks
aevesdocker
pushed a commit
to docker/docs
that referenced
this pull request
Feb 20, 2025
## Description Updates for moby 28.0 networking. ## Related issues or tickets Series of commits ... - Fix description of 'inhibit_ipv4' - Not changed in moby 28.0, updated to clarify difference from (new) IPv6-only networks. - Updates to default bridge address config - moby/moby#48319 - Describe IPv6-only network config - moby/moby#48271 - docker/cli#5599 - Update description of gateway modes - moby/moby#48594 - moby/moby#48596 - moby/moby#48597 - Describe gateway selection in the networking overview. - docker/cli#5664 - Describe gateway mode `isolated` - moby/moby#49262 ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review --------- Signed-off-by: Rob Murray <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
- What I did
Add value
isolatedfor bridge labelscom.docker.network.bridge.gateway_mode_ipv[46].It prevents assignment of an address to the bridge, so the host has no address in the network - and can only be used when the network is also
--internal.For IPv4, mode
isolatedis equivalent to--internal -o com.docker.network.bridge.inhibit_ipv4=true- since commit 43f71fb, no gateway address is allocated in that case. Apart fromisolatedworking for IPv6 too, the difference is in the intended use -inhibit_ipv4is described as a way to put the gateway address somewhere-else (see Skip IP address configuration) so, it's fine to use it without--internal, but it doesn't necessarily isolate the network. Whereas, modeisolatedcan only be used with--internaland fits alongside the othergateway_mode_ipv[46]options as a way to control connectivity of containers on the network.- How I did it
Don't assign an address to the bridge in
isolatedmode.For
gateway_mode_ipv6=isolated, disable IPv6 on the bridge so that it doesn't get a link-local address.- How to verify it
New integration tests.
- Description for the changelog