January 2018
Intermediate to advanced
414 pages
10h 29m
English
Docker swarm is a tool provided by Docker that allows us to create a cloud, in a similar way that other tools, such as Kubernetes, do. This is included as part of the current version of Docker. A swarm is like a cluster of Dockers that we can use to create Docker instances, so before anything else, we need to create a new swarm in our system. To do so, we can just create a local swarm with the following command:
docker swarm init
It should output this message, telling us that our swarm is ready:
Swarm initialized: current node (kqhbzwiih5ynqonf2we16cqpn) is now a manager.To add a worker to this swarm, run the following command: docker swarm join --token SWMTKN-1-437vu5usnkkvnlb157kmb46gys9784hsnifg79a4lbeu7imv49-85uj1ta34bsu82ejq0cf1tizc ...
Read now
Unlock full access