Getting Started with Docker Swarm

Love using docker on a single machine and want to easily scale across multiple machines? This course will teach you about creating clusters and orchestrating containers with Docker Swarm.
Course info
Level
Intermediate
Updated
Jun 25, 2021
Duration
4h 12m
Table of contents
Course Overview
Joining Nodes to Form a Docker Swarm Cluster
Deploying Services to the Cluster
Deploying Applications with Stacks
A Stack to Deploy Our weby NGINX Service 4m Deploying the weby Stack with Docker Stack Deploy 4m Updating a Deployed Service - Just Edit the Stack File and Push the "Deploy Button" Again! 3m How to Monitor All Tasks at the CLI 4m Understanding Reconciliation by Draining a Manager Node 4m SwarmKit Has One of the Best Ever Documented Codebases 4m SwarmKit's Code Is Itself Accessible - Check It Out! 2m The SwarmKit Repo Design Docs Are Filled with Architecture and Terms 2m Creating a Stack File to Deploy Our viz Service 3m Initializing a Pi Swarm in under 3 Minutes Using a Bare Metal Setup of 5 Raspberry PIs! 4m Troubleshooting a Failed Service on the Task Level with `Docker Stack ps --no-trunc` 4m Finding an Image's Supported Platforms on Docker Hub or via `hub-tool tag ls --platforms` 2m Changing Images to weshigbee/swarmgs2-viz: Just Edit the Stack File and Deploy! 6m Configuring a Scaled Service via a Stack File - echo-replica.yml 2m Using a Templated Task to Append {{.Node.Hostname}}-{{.Task.Slot}} To Service Container Hostnames 1m Deploying a Stack Based on weshigbee/swarmgs2-echo 1m echo's /containers Endpoint to List Its Docker Host's Containers - Akin to docker container ps -a 1m Forcing the Browser to Establish New Connections to Investigate Routing Implications 5m Deploy to Pull the Latest Image 2m Observe Routing with Curl and without Connection Reuse 3m The Role of the Ingress Overlay Network 2m Communicating Internally over Default and Custom Overlay Networks 3m Performing a DNS Lookup from One Container to Its Own Service - and We Find a New, Implicit Stack Network! 5m Docker Network Inspect's --verbose Flag Is Filled with Rich Details About the Ingress Network 4m Investigating How the echor_default Overlay Network Works for Internal Communication 6m dig servicename Returns our Service's VIP - whereas - dig tasks.servicename Returns Our Service's dnsrr List of IPs 3m Using dnsrr for Internal and Container to Container Service Discovery on Backend Overlay Networks 4m
Running Jobs on the Cluster
Injecting App Config and Secrets at Runtime
Description
Course info
Level
Intermediate
Updated
Jun 25, 2021
Duration
4h 12m
Description

What do you do when a single, standalone Docker node no longer is sufficient? In this course, Getting Started with Docker Swarm, you’ll learn to scale beyond the limitations of a single machine while maintaining the simplicity of Docker and Docker Compose on a single node. First, you’ll bootstrap a multi-node cluster with just a few, simple docker commands. Next, you’ll discover how to deploy services and jobs with stack yaml files. Finally, you’ll learn how to inject config and sensitive secrets. When you’re finished with this course, you’ll have the skills and knowledge of Docker Swarm needed to orchestrate container workloads across any number of nodes.

About the author
About the author

Wes Higbee is passionate about helping companies achieve remarkable results with technology and software. He’s had extensive experience developing software and working with teams to improve how software is developed to meet business objectives. Wes launched Full City Tech to leverage his expertise to help companies delight customers.

More from the author
Implementing a Self-hosted Docker Registry
Intermediate
4h 8m
Jul 1, 2021
Managing Docker on Linux Servers
Intermediate
3h 12m
Feb 5, 2021
More courses by Wes Higbee
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi, my name is Wes Higbee. Welcome to my course, Getting Started with Docker Swarm. I just love how easy it is to run about any application I can think of with Docker, pull an image, spin up a container, and off I go. At some point, though, we'll run out of resources on a given machine, and wouldn't it be nice if we could use the same workflow to spin up applications across an entire cluster of machines? In this course, we're going to see how Docker Swarm makes this possible. We'll start by creating a cluster of nodes. We'll look at deploying services or applications onto those nodes. We'll take a look at stacks to help us manage not just the services, but also networks, volumes, configurations, all the resources necessary to run an application. We'll look at how we update our application with Docker Swarm. We'll even take a look at one of the newest features, jobs. By the end of this course, you'll be prepared to provision a cluster and deploy complex applications to it. Coming into this course, I'll assume that you have familiarity with a standalone Docker node using the Docker CLI and perhaps even Docker Compose. All right, let's get started.