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
isolated
for 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
isolated
is equivalent to--internal -o com.docker.network.bridge.inhibit_ipv4=true
- since commit 43f71fb, no gateway address is allocated in that case. Apart fromisolated
working for IPv6 too, the difference is in the intended use -inhibit_ipv4
is 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, modeisolated
can only be used with--internal
and 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
isolated
mode.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