Book Image

Beginning DevOps with Docker

By : Joseph Muli
5 (1)
Book Image

Beginning DevOps with Docker

5 (1)
By: Joseph Muli

Overview of this book

Making sure that your application runs across different systems as intended is quickly becoming a standard development requirement. With Docker, you can ensure that what you build will behave the way you expect it to, regardless of where it's deployed. By guiding you through Docker from start to finish (from installation, to the Docker Registry, all the way through to working with Docker Swarms), we’ll equip you with the skills you need to migrate your workflow to Docker with complete confidence.
Table of Contents (7 chapters)

An Overview of Docker Swarm


Docker Swarm is a clustering tool for Docker containers. It allows you to establish and manage a cluster of Docker nodes as a single virtual system. This means we get to run Docker on multiple hosts on our computers.

We control the swarm cluster through a manager which primarily handles and controls containers. With the swarm manager, you can create a primary manager instance and multiple replica instances in case the primary fails. This means you can have more than one manager in a swarm!

Note

A swarm is created from a manager node, and other Docker machines join the cluster, either as worker nodes or manager nodes.

Clustering is important because it creates a group of cooperating systems that provide redundancy, creating a fault-tolerant environment. For example, if one or more of the nodes goes down, Docker Swarm will fail over to another working node.

The Swarm manager carries out the following roles:

  • Accepts docker commands

  • Executes commands against the cluster...