Fix typo in flag name (#5376)

This commit is contained in:
Misty Stanley-Jones 2017-11-22 11:48:24 -08:00 committed by GitHub
parent 789150504b
commit 69350e7b92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -367,31 +367,31 @@ and management traffic for maintaining the swarm itself and data traffic to and
from the service containers.
In Docker 17.06 and higher, it is possible to separate this traffic by passing
the `--datapath-addr` flag when initializing or joining the swarm. If there are
the `--data-path-addr` flag when initializing or joining the swarm. If there are
multiple interfaces, `--advertise-addr` must be specified explicitly, and
`--datapath-addr` defaults to `--advertise-addr` if not specified. Traffic about
`--data-path-addr` defaults to `--advertise-addr` if not specified. Traffic about
joining, leaving, and managing the swarm will be sent over the
`--advertise-addr` interface, and traffic among a service's containers will be
sent over the `--datapath-addr` interface. These flags can take an IP address or
sent over the `--data-path-addr` interface. These flags can take an IP address or
a network device name, such as `eth0`.
This example initializes a swarm with a separate `--datapath-addr`. It assumes
This example initializes a swarm with a separate `--data-path-addr`. It assumes
that your Docker host has two different network interfaces: 10.0.0.1 should be
used for control and management traffic and 192.168.0.1 should be used for
traffic relating to services.
```bash
$ docker swarm init --advertise-addr 10.0.0.1 --datapath-addr 192.168.0.1
$ docker swarm init --advertise-addr 10.0.0.1 --data-path-addr 192.168.0.1
```
This example joins the swarm managed by host `192.168.99.100:2377` and sets the
`--advertise-addr` flag to `eth0` and the `--datapath-addr` flag to `eth1`.
`--advertise-addr` flag to `eth0` and the `--data-path-addr` flag to `eth1`.
```bash
$ docker swarm join \
--token SWMTKN-1-49nj1cmql0jkz5s954yi3oex3nedyz0fb0xx14ie39trti4wxv-8vxv8rssmk743ojnwacrr2d7c \
--advertise-addr eth0 \
--datapath-addr eth1 \
--data-path-addr eth1 \
192.168.99.100:2377
```