Suppress "IPv4 forwarding" warning for --net=host
Containers using the host network stack (--net=host) are not affected by "ip-forwarding" being disabled, so there's not need to show a warning. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 5fb7f9b29e9a85f36d02c4ecec6c04498fdb4315 Component: engine
This commit is contained in:
@@ -37,6 +37,9 @@ or to turn it on manually:
|
||||
net.ipv4.conf.all.forwarding = 1
|
||||
```
|
||||
|
||||
> **Note**: this setting does not affect containers that use the host
|
||||
> network stack (`--net=host`).
|
||||
|
||||
Many using Docker will want `ip_forward` to be on, to at least make
|
||||
communication _possible_ between containers and the wider world. May also be
|
||||
needed for inter-container communication if you are in a multiple bridge setup.
|
||||
|
||||
Reference in New Issue
Block a user