Fix docs and help messages of --iptables and --ip-forward to describe the true case behaviour
Docker-DCO-1.1-Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com> (github: ichik1)
| ... | ... |
@@ -35,8 +35,8 @@ func main() {
|
| 35 | 35 |
flSocketGroup = flag.String([]string{"G", "-group"}, "docker", "Group to assign the unix socket specified by -H when running in daemon mode; use '' (the empty string) to disable setting of a group")
|
| 36 | 36 |
flEnableCors = flag.Bool([]string{"#api-enable-cors", "-api-enable-cors"}, false, "Enable CORS headers in the remote API")
|
| 37 | 37 |
flDns = opts.NewListOpts(opts.ValidateIp4Address) |
| 38 |
- flEnableIptables = flag.Bool([]string{"#iptables", "-iptables"}, true, "Disable docker's addition of iptables rules")
|
|
| 39 |
- flEnableIpForward = flag.Bool([]string{"#ip-forward", "-ip-forward"}, true, "Disable enabling of net.ipv4.ip_forward")
|
|
| 38 |
+ flEnableIptables = flag.Bool([]string{"#iptables", "-iptables"}, true, "Enable Docker's addition of iptables rules")
|
|
| 39 |
+ flEnableIpForward = flag.Bool([]string{"#ip-forward", "-ip-forward"}, true, "Enable net.ipv4.ip_forward")
|
|
| 40 | 40 |
flDefaultIp = flag.String([]string{"#ip", "-ip"}, "0.0.0.0", "Default IP address to use when binding container ports")
|
| 41 | 41 |
flInterContainerComm = flag.Bool([]string{"#icc", "-icc"}, true, "Enable inter-container communication")
|
| 42 | 42 |
flGraphDriver = flag.String([]string{"s", "-storage-driver"}, "", "Force the docker runtime to use a specific storage driver")
|
| ... | ... |
@@ -80,8 +80,8 @@ Commands |
| 80 | 80 |
-g, --graph="/var/lib/docker": Path to use as the root of the docker runtime |
| 81 | 81 |
--icc=true: Enable inter-container communication |
| 82 | 82 |
--ip="0.0.0.0": Default IP address to use when binding container ports |
| 83 |
- --ip-forward=true: Disable enabling of net.ipv4.ip_forward |
|
| 84 |
- --iptables=true: Disable docker's addition of iptables rules |
|
| 83 |
+ --ip-forward=true: Enable net.ipv4.ip_forward |
|
| 84 |
+ --iptables=true: Enable Docker's addition of iptables rules |
|
| 85 | 85 |
--mtu=0: Set the containers network MTU; if no value is provided: default to the default route MTU or 1500 if not default route is available |
| 86 | 86 |
-p, --pidfile="/var/run/docker.pid": Path to use for daemon PID file |
| 87 | 87 |
-r, --restart=true: Restart previously running containers |