March 2020
Beginner
592 pages
14h 14m
English
So, enough imagining — let's demonstrate how we can create a Swarm. In its most simple form, a fully functioning Docker Swarm consists only of a single node. If you're using Docker for Mac or Windows, or even if you're using Docker Toolbox, then your personal computer or laptop is such a node. Hence, we can start right there and demonstrate some of the most important features of a Swarm.
Let's initialize a Swarm. On the command line, just enter the following command:
$ docker swarm init
And after an incredibly short time, you should see something like the following screenshot:

Read now
Unlock full access