Add docs for ip-forward

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang
2015-06-03 16:37:40 +08:00
parent 63823cd6c1
commit 85fffe1341
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -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