-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Hands-On Microservices with Kotlin
By :

Now that we understand some concepts about how to handle scaling, we need to have a cloud that we can use to build scalable microservices. In this section, we will learn how we can use Docker swarm to set up a small cloud.
You will need Docker for Windows or Docker for Mac to continue with this chapter. You can follow the steps described in Chapter 7, Creating Dockers, and you can find more information on some of the Docker commands that we will use in this chapter.
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...