Manage Your Cluster Using Docker Swarm Mode

Intermediate

17 students completed the lab in ~48m

Total available time: 1h:20m

Be the first to rate this lab!

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:

Follow these steps to learn by building helpful cloud resources

Logging into the Microsoft Azure portal

Begin the Lab by logging into the Microsoft Azure portal

Understanding the Docker Swarm Mode Cluster Architecture

Understand the cluster architecture and the resources provisioned for this Lab

Connecting to the Lab Provisioned Virtual Machine

Use an SSH client to connect to the virtual machine created for you

Inspecting the Docker Swarm Mode Cluster

Inspect the state of the swarm using the command line

Deploying Your First Service to the Swarm

Deploy simple service and issue common commands for working with the service

Monitoring Your Swarm

Deploy a swarm monitoring service to a manager node

Deploying a Multi-Service Stack to the Swarm

Use Docker Compose files to define service stacks that are readily deployable