May 2017
Intermediate to advanced
436 pages
9h 44m
English
We'll continue using Docker Machine since it provides a very convenient way to simulate a cluster on a laptop. Three servers should be enough to demonstrate some of the key features of a Swarm cluster:
for i in 1 2 3; do docker-machine create -d virtualbox node-$idone
At this moment, we have three nodes. Please note that those servers are not running anything but Docker Engine.
We can see the status of the nodes by executing the following ls command:
docker-machine ls
The output is as follows (ERROR column removed for brievity):
NAME ACTIVE DRIVER STATE URL SWARM ...
Read now
Unlock full access