@ -73,5 +73,87 @@ Worker nodes are also instances of Docker Engine whose sole purpose is to execut
You can create a swarm of one manager node, but you cannot have a worker node without at least one manager node. By default, all managers are also workers.
== Create swarm
Initialize a swarm. The docker engine targeted by this command becomes a manager in the newly created single-node swarm.
.create swarm
[source,sh]
----
docker swarm init --advertise-addr ip
Swarm initialized: current node (bvz81updecsj6wjz393c09vti) is now a manager.
To add a worker to this swarm, run the following command:
Join a node to a swarm. The node joins as a manager node or worker node based upon the token you pass with the --token flag. If you pass a manager token, the node joins as a manager. If you pass a worker token, the node joins as a worker.