Using Docker Engine to Create a Swarm

Before we create our swarm, let's get a quick overview of the docker-machine cli. Typing docker-machine on your terminal should give you this output:

Using Docker Engine to Create a Swarm

Just below that, we have our list of commands:

Using Docker Engine to Create a Swarm

Note

Remember to always use the help option when you need to clarify something, that is, docker-machine stop --help

To create our first Docker Swarm cluster, we are going to use docker-machine to create our manager and worker nodes first.

Before creating the first machine, a quick overview of our objectives gives us the ...

Get Beginning DevOps with Docker now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.