DevOps Peach

Docker & Kubernetes · Module 06

Docker Swarm – Basic Orchestration

Join several Docker hosts into a swarm, understand manager and worker roles, then deploy and scale services by desired state.

Practice interactively →

What you will learn

Lessons

  1. Swarm mode — manager and worker nodes

    A swarm joins several Docker hosts into a cluster; managers keep the cluster state with Raft and workers run containers.

  2. Creating and managing a swarm

    docker swarm init creates a swarm and prints the join command; join-token prints it again; docker node manages nodes, and drain prepares maintenance.

  3. Services, tasks and deploying on a swarm

    A service is a desired state; managers split it into tasks, and each task runs one container on one node.