August 2017
Intermediate to advanced
332 pages
9h 16m
English
In order to set up a Swarm, we need to initialize the manager node. We can do this using the following command on a machine that is supposed to become the manager:
$ docker swarm initSwarm initialized: current node (qfqzhk2bumhd2h0ckntrysm8l) is now a manager.To add a worker to this swarm, run the following command:docker swarm join \--token SWMTKN-1-253vezc1pqqgb93c5huc9g3n0hj4p7xik1ziz5c4rsdo3f7iw2-df098e2jpe8uvwe2ohhhcxd6w \192.168.0.143:2377To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
Read now
Unlock full access