|
@@ -228,13 +228,11 @@ Whether a container can talk to the world is governed by two factors.
|
|
|
Docker will go set `ip_forward` to `1` for you when the server
|
|
|
starts up. To check the setting or turn it on manually:
|
|
|
|
|
|
- ```
|
|
|
- $ cat /proc/sys/net/ipv4/ip_forward
|
|
|
- 0
|
|
|
- $ echo 1 > /proc/sys/net/ipv4/ip_forward
|
|
|
- $ cat /proc/sys/net/ipv4/ip_forward
|
|
|
- 1
|
|
|
- ```
|
|
|
+ $ cat /proc/sys/net/ipv4/ip_forward
|
|
|
+ 0
|
|
|
+ $ echo 1 > /proc/sys/net/ipv4/ip_forward
|
|
|
+ $ cat /proc/sys/net/ipv4/ip_forward
|
|
|
+ 1
|
|
|
|
|
|
Many using Docker will want `ip_forward` to be on, to at
|
|
|
least make communication *possible* between containers and
|
|
@@ -463,9 +461,7 @@ your host's interfaces you should set `accept_ra` to `2`. Otherwise IPv6
|
|
|
enabled forwarding will result in rejecting Router Advertisements. E.g., if you
|
|
|
want to configure `eth0` via Router Advertisements you should set:
|
|
|
|
|
|
- ```
|
|
|
$ sysctl net.ipv6.conf.eth0.accept_ra=2
|
|
|
- ```
|
|
|
|
|
|

|
|
|
|