The result of this scenario is a two-node Swarm Mode cluster which can run load-balanced containers that can be scaled up and down.

Docker Swarm Cluster

Step 1 of 6

Step 1 - Initialise Swarm cluster

When the manager initialises the cluster, it generates a token. This token must be used when additional hosts want to join. Task

Initialise the cluster using docker swarm init

In the next step, we will use the token so our second host can join.

checking environment

You can now docker info