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.
```
In the tutorial, you connect to alpine1 (ONE!), do some stuff, can't ping alpine2 and I guess the author was confused at this point because immediately after not being able to ping alpine2 comes detaching from the one you're connected to and that's alpine1.
1. Be more specific about what happens when constraints aren't satified.
2. There is no `--global`. Also addressed in network/overlay.md.
3. Label constraints do not match node labels without `node.label` prefix.
AFAIK neither 2 nor 3 have ever been correct
testedon: 17.06.2-ee-16
- Modify the `docker run` command to remove the unnecessary flags "-i" and "-t".
- Add a short description for the "--rm" option.
- Remove the "docker container rm" command which seems redundant due to "--rm" option.
The docker run argument order is -dit in most part, bu i found a different order -idt here.I believe it is better to have inconsistent order in the entire documentation. It can be confusing for new-bees if they see these parameters are ordered inconsistently across documentation flow.