mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-28 09:00:46 +00:00
Add docs for ip-forward
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
@@ -269,7 +269,9 @@ Whether a container can talk to the world is governed by two factors.
|
||||
containers if this parameter is `1`. Usually you will simply leave
|
||||
the Docker server at its default setting `--ip-forward=true` and
|
||||
Docker will go set `ip_forward` to `1` for you when the server
|
||||
starts up. To check the setting or turn it on manually:
|
||||
starts up. If you set `--ip-forward=false` and your system's kernel
|
||||
has it enabled, the `--ip-forward=false` option has no effect.
|
||||
To check the setting on your kernel or to turn it on manually:
|
||||
|
||||
$ sysctl net.ipv4.conf.all.forwarding
|
||||
net.ipv4.conf.all.forwarding = 0
|
||||
|
||||
Reference in New Issue
Block a user