November 2017
Intermediate to advanced
298 pages
7h 10m
English
To create our swarm, we first need to instantiate it:
$ docker swarm initSwarm initialized: current node (osb7tritzhtlux1o9unlu2vd0) is now a manager.To add a worker to this swarm, run the following command: docker swarm join \ --token SWMTKN-1-4atg39hw64uagiqk3i6s3zlv5mforrzj0kk1aeae22tpsat2jj-2zn0ak0ldxo58d1q7347t4rd5 \ 192.168.4.128:2377To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.$ # Make sure that our node is operational$ docker node lsID HOSTNAME STATUS AVAILABILITY MANAGER STATUSosb7tritzhtlux1o9unlu2vd0 * feather2 Ready Active Leader
We have created a swarm with that command and we are automatically enrolled as a manager node. If you take a look ...
Read now
Unlock full access