November 2018
Beginner
230 pages
6h 4m
English
When you initialize the swarm by running the swarm init command on the first node, one of the functions that is executed creates unique cryptographic join tokens, one joins additional manager nodes, and one joins worker nodes. Using the join-token command, you can obtain these two join tokens. In fact, using the join-token command will deliver the full join command for whichever role you specify. The role parameter is required. Here are examples of the command:
# Get the join token for adding managersdocker swarm join-token manager# Get the join token for adding workersdocker swarm join-token worker
Here is what that looks like:
# Rotate the worker join tokendocker swarm join-token --rotate worker
Note that this ...
Read now
Unlock full access