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
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
..
how-swarm-mode-works Merge pull request #25119 from thaJeztah/pre-1.12-ga-fixes 2016-07-27 21:43:37 +10:00
images add how services work to how swarm mode works guide 2016-07-26 10:44:19 -07:00
swarm-tutorial Improve swarm join-token instructions 2016-08-02 16:44:02 +02:00
admin_guide.md Fix swarm manager node fault tolerance table 2016-07-30 21:20:54 -06:00
index.md Update usage of "Swarm" for consistency 2016-07-27 23:31:55 +02:00
join-nodes.md Improve swarm join-token instructions 2016-08-02 16:44:02 +02:00
key-concepts.md Update usage of "Swarm" for consistency 2016-07-27 23:31:55 +02:00
manage-nodes.md add swarm manage nodes guide 2016-07-26 10:25:05 -07:00
menu.md Remove release-candidate advisories 2016-07-27 11:24:16 +02:00
raft.md Remove release-candidate advisories 2016-07-27 11:24:16 +02:00
services.md add services guide to manage a swarm 2016-07-29 15:01:52 -07:00
swarm-mode.md Improve swarm join-token instructions 2016-08-02 16:44:02 +02:00