1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/swarm/swarm-tutorial
Sebastiaan van Stijn ebebd41769
Improve swarm join-token instructions
this change improves the instructions for
swarm join-token and swarm init;

- only print the join-token command for workers
  instead of for both managers and workers, to
  prevent users from copying the wrong command.
  An extra line is added to explain how to obtain
  the manager token.
- print a message that a token was rotated
  sucesfully if '--rotate' is used.
- add some extra white-space before / after
  the join commands, to make copy/pasting
  easier.

this change also does some refactoring of join-token;

- move flagname-constants together with other constants
- use variables for selected role ("worker" / "manager")
  to prevent checking for them multiple times, and to
  keep the "worker" / "manager" sting centralized
- add an extra blank line after "join-token" instructions
  this makes it easier to copy, and cleans up the
  code a tiny bit

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-08-02 16:44:02 +02:00
..
add-nodes.md Improve swarm join-token instructions 2016-08-02 16:44:02 +02:00
create-swarm.md Improve swarm join-token instructions 2016-08-02 16:44:02 +02:00
delete-service.md Remove release-candidate advisories 2016-07-27 11:24:16 +02:00
deploy-service.md Remove release-candidate advisories 2016-07-27 11:24:16 +02:00
drain-node.md Update usage of "Swarm" for consistency 2016-07-27 23:31:55 +02:00
index.md Remove release-candidate advisories 2016-07-27 11:24:16 +02:00
inspect-service.md Update usage of "Swarm" for consistency 2016-07-27 23:31:55 +02:00
menu.md Remove release-candidate advisories 2016-07-27 11:24:16 +02:00
rolling-update.md Update usage of "Swarm" for consistency 2016-07-27 23:31:55 +02:00
scale-service.md cli: docker service|node|stack ps instead of tasks 2016-07-27 11:06:42 -07:00