April 2018
Intermediate to advanced
250 pages
5h 42m
English
Recall that we used the term Docker host to refer to a machine with Docker installed. When we join these hosts together to form a cluster, sometimes we call each of them a Docker node.
A Swarm cluster consists of two kinds of Docker nodes, a master and a worker. We say node mg0 has the master role, and node w01 has the worker role, for example. We form a cluster by joining other nodes to a master, usually the first master. The docker swarm join command requires the security tokens to be different, to allow a node to join as the master or as the worker. Please note that we must run the docker swarm join command on each node, not on the master node:
# Login to each node$ docker swarm join --token SWMTKN-1-27uhz2azpesmsxu0tlli2e2uhdr2hudn3e2x5afilc02x1zicc-9wd3glqr5i92xmxvpnzdwz2j9 ...
Read now
Unlock full access