April 2018
Intermediate to advanced
250 pages
5h 42m
English
To create a fully functional single-node Swarm cluster, we just type the following command:
$ docker swarm initSwarm initialized: current node (jbl2cz9gkilvu5i6ahtxlkypa) is now a manager.To add a worker to this swarm, run the following command: docker swarm join --token SWMTKN-1-470wlqyqbsxhk6gps0o9597izmsjx4xeht5cy3df5sc9nu5n6u-9vlvcxjv5jjrcps4trjcocaae 192.168.1.4:2377To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
We call this process Swarm cluster initialization. This process initializes the new cluster by preparing the /var/lib/docker/swarm directory to store all states related to the cluster. Here's the contents of /var/lib/docker/swarm, which could be backed up ...
Read now
Unlock full access