Learn Docker in a Month of Lunches by Elton Stoneman

Learn Docker in a Month of Lunches by Elton Stoneman

Author:Elton Stoneman [Stoneman, Elton]
Language: eng
Format: epub, pdf
Publisher: Manning Publications Co.
Published: 0101-01-01T00:00:00+00:00


# print the command to join a new manager node

docker swarm join-token manager

# list all the nodes in the swarm

docker node ls

You can see my output in figure 12.4. There’s only one node in my Swarm, but I can add any other machines on my network to the Swarm using the manager’s IP address in the join command.

Figure 12.4 In Swarm mode you have extra commands to manage the nodes in the cluster.

A single-node Swarm works in exactly the same way as a multi-node Swarm, except that you don’t get high availability from having spare machines, or the option to scale out containers to use the capacity of many machines. Figure 12.5 compares the architecture of a single-node Swarm, which you can use for development and test environments, and a multi-node cluster, which you would use in production.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.