hands-on lab

Manage Your Cluster Using Docker Swarm Mode

Up to 1h 20m
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.


Lab Overview

Docker swarm mode is Docker's integrated cluster and container orchestration feature. This Lab provides you with a pre-created cluster that is Docker swarm ready. In the Lab, you will manage your cluster using Docker swarm mode and learn common commands and capabilities. By the end, you will have implemented basic swarm monitoring, as well as deployed and scaled a multi-service application.

Lab Objectives

Upon completion of this Lab you will be able to:

  • Manage nodes in a Docker swarm mode cluster
  • Deploy and manage services in a swarm
  • Monitor dispatched services in a swarm
  • Deploy multi-service applications to the swarm using Docker stacks

Lab Prerequisites

You should be familiar with:

  • Using Docker on Linux
  • Docker concepts including containers, images, networks, and volumes

Lab Environment

Before completing the Lab instructions, the environment will look as follows:

After completing the Lab instructions, the environment should look similar to:


May 5th, 2022 - Resolved an issue causing Docker not to be installed on the cluster nodes

About the author

Logan Rakai, opens in a new tab
Lead Content Developer - Labs
Learning paths

Logan has been involved in software development and research since 2007 and has been in the cloud since 2012. He is an AWS Certified DevOps Engineer - Professional, AWS Certified Solutions Architect - Professional, Microsoft Certified Azure Solutions Architect Expert, MCSE: Cloud Platform and Infrastructure, Google Cloud Certified Associate Cloud Engineer, Certified Kubernetes Security Specialist (CKS), Certified Kubernetes Administrator (CKA), Certified Kubernetes Application Developer (CKAD), and Certified OpenStack Administrator (COA). He earned his Ph.D. studying design automation and enjoys all things tech.

LinkedIn, Twitter, GitHub

Covered topics

Lab steps

Logging in to the Microsoft Azure Portal
Understanding the Docker Swarm Mode Cluster Architecture
Connecting to the Lab Provisioned Azure Virtual Machine
Inspecting the Docker Swarm Mode Cluster
Deploying Your First Service to the Swarm
Monitoring Your Swarm
Deploying a Multi-Service Stack to the Swarm