mirror of https://github.com/docker/docs.git
Fix typo in flag name (#5376)
This commit is contained in:
parent
789150504b
commit
69350e7b92
|
@ -367,31 +367,31 @@ and management traffic for maintaining the swarm itself and data traffic to and
|
||||||
from the service containers.
|
from the service containers.
|
||||||
|
|
||||||
In Docker 17.06 and higher, it is possible to separate this traffic by passing
|
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
|
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
|
joining, leaving, and managing the swarm will be sent over the
|
||||||
`--advertise-addr` interface, and traffic among a service's containers will be
|
`--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`.
|
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
|
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
|
used for control and management traffic and 192.168.0.1 should be used for
|
||||||
traffic relating to services.
|
traffic relating to services.
|
||||||
|
|
||||||
```bash
|
```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
|
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
|
```bash
|
||||||
$ docker swarm join \
|
$ docker swarm join \
|
||||||
--token SWMTKN-1-49nj1cmql0jkz5s954yi3oex3nedyz0fb0xx14ie39trti4wxv-8vxv8rssmk743ojnwacrr2d7c \
|
--token SWMTKN-1-49nj1cmql0jkz5s954yi3oex3nedyz0fb0xx14ie39trti4wxv-8vxv8rssmk743ojnwacrr2d7c \
|
||||||
--advertise-addr eth0 \
|
--advertise-addr eth0 \
|
||||||
--datapath-addr eth1 \
|
--data-path-addr eth1 \
|
||||||
192.168.99.100:2377
|
192.168.99.100:2377
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue