mirror of https://github.com/docker/docs.git
unknown flag: --join
Running: ``` $ docker swarm --join --token <TOKEN> \ --advertise-addr <IP-ADDRESS-OF-WORKER-1> \ <IP-ADDRESS-OF-MANAGER>:2377 ``` throws the following error ``` unknown flag: --join See 'docker swarm --help'. Usage: docker swarm COMMAND Manage Swarm Commands: ca Display and rotate the root CA init Initialize a swarm join Join a swarm as a node and/or manager join-token Manage join tokens leave Leave the swarm unlock Unlock swarm unlock-key Manage the unlock key update Update the swarm Run 'docker swarm COMMAND --help' for more information on a command. ``` The command in the PR returns ``` This node joined a swarm as a worker. ```
This commit is contained in:
parent
f7c7b58a78
commit
b759eb9c60
|
@ -88,7 +88,7 @@ and will be connected together using an overlay network called `ingress`.
|
|||
the `--advertise-addr` flag is optional.
|
||||
|
||||
```bash
|
||||
$ docker swarm --join --token <TOKEN> \
|
||||
$ docker swarm join --token <TOKEN> \
|
||||
--advertise-addr <IP-ADDRESS-OF-WORKER-1> \
|
||||
<IP-ADDRESS-OF-MANAGER>:2377
|
||||
```
|
||||
|
@ -97,7 +97,7 @@ and will be connected together using an overlay network called `ingress`.
|
|||
the `--advertise-addr` flag is optional.
|
||||
|
||||
```bash
|
||||
$ docker swarm --join --token <TOKEN> \
|
||||
$ docker swarm join --token <TOKEN> \
|
||||
--advertise-addr <IP-ADDRESS-OF-WORKER-2> \
|
||||
<IP-ADDRESS-OF-MANAGER>:2377
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue