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:
Bill Grant 2018-12-31 10:46:26 -05:00 committed by GitHub
parent f7c7b58a78
commit b759eb9c60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
```