Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Docker Swarm HA Lab: Ansible Automation IaC CentOS AI Agent!
Rating: 4.8 out of 5(6 ratings)
316 students

Docker Swarm HA Lab: Ansible Automation IaC CentOS AI Agent!

HA Cluster Hands-on lab:: deploy a Docker Swarm HA cluster on CentOS 9 VMs using Ansible IaC VMware Windsurf AI Agent..
Last updated 10/2026
English
English [Auto],

What you'll learn

  • Docker Swarm HA Lab: Ansible Automation IaC CentOS AI Agent!
  • HA Cluster Hands-on lab:: deploy a Docker Swarm HA cluster on CentOS 9 VMs using Ansible IaC VMware Windsurf AI Agent..
  • PRACTICAL LAB
  • AI Agent & Coding
  • Automation
  • Docker
  • Real Examples
  • CentOS VMs - Server Deployment
  • Docker to Production - Containers, Swarm Clusters and Ansible Automation Labs
  • Docker, Docker Swarm and Ansible Bootcamp - Build and Run Production Clusters
  • Master Docker, Docker Swarm and Ansible - Real Labs from the Basics to Clusters
  • Docker, Docker Swarm and Ansible - Complete Guide from Fundamentals to Clusters

Course content

19 sections • 141 lectures • 47h 26m total length
  • 01 Welcome to the Course What You Will Build and Learn3:24
  • 02 Containers vs Virtual Machines Why Docker Changed Deployment3:44
  • 03 Linux Essentials for Containers Shell, systemd, Firewall and SSH Keys6:51
  • 04 Install Docker on Ubuntu Step by Step4:10
  • 05 Install Docker on Rocky Linux and CentOS Stream4:45
  • 06 Docker Desktop on Windows and macOS Reference Steps3:55
  • 07 Your Lab Five Servers on a Private Network4:30
  • 08 Namespaces How a Container Gets Its Own World5:40
  • 09 Control Groups Limiting CPU and Memory5:33
  • 10 Image Layers and the Union Filesystem5:29
  • 11 Images and Containers Pull, Run, Stop and Remove5:05
  • 12 Inside a Running Container exec, logs, inspect and stats4:32
  • 13 Publishing Ports and Environment Variables5:00
  • 14 Volumes and Bind Mounts Keeping Data Safe4:54
  • 15 Container Networks How Containers Talk to Each Other4:45
  • 16 Restart Policies, Detached Mode and Cleanup4:50
  • 17 Meet the Sample App Running shopnotes by Hand5:53
  • 18 Troubleshooting Docker The Ten Most Common Errors6:27
  • 19 Your First Dockerfile FROM, RUN, COPY and CMD5:05
  • 20 Layers, Build Cache and .dockerignore5:34
  • 21 ENTRYPOINT vs CMD, ARG vs ENV, WORKDIR and EXPOSE5:40
  • 22 Multi-Stage Builds for Small Images5:15
  • 23 Image Best Practices Non-Root User, HEALTHCHECK, Labels and Linting5:19
  • 24 Tagging and Versioning Images Properly4:37
  • 25 Dockerize the Sample App Flask and nginx Images5:47
  • 26 Network Drivers bridge, host, none and macvlan6:09
  • 27 Container DNS and Service Discovery5:17
  • 28 How Port Publishing Really Works iptables and Firewalls6:09
  • 29 Volume Internals, Drivers and Backing Up Volumes5:56
  • 30 Logging Drivers and Resource Limits in Practice5:15
  • 31 Container Security Basics Users, Capabilities, Rootless Mode and Podman6:34
  • 32 Why Compose From Many Commands to One File6:08
  • 33 Services, Networks and Volumes in compose.yaml5:36
  • 34 Environment Files, Healthchecks and depends_on5:05
  • 35 Compose the Sample App Flask, PostgreSQL, Redis and nginx6:45
  • 36 Profiles, Override Files and Dev vs Prod Setups5:18
  • 37 Scaling, Updating and Debugging Compose Projects5:00
  • 38 Remote Docker Contexts and SSH from the Control Node4:48
  • 39 Docker Hub and Running Your Own Private Registry6:18
  • 40 Registry Authentication and Image Tagging Strategy5:13
  • 41 Scanning Images for Vulnerabilities with Trivy5:16
  • 42 CI Pipeline Build, Scan and Push on Every Commit with Gitea Actions6:56
  • 43 What Is Docker Swarm Managers, Workers and the Raft Quorum5:50
  • 44 Initialize a Three-Node Swarm on Ubuntu and Rocky5:37
  • 45 Services and Replicas Your First Clustered App5:09
  • 46 Overlay Networks and the Routing Mesh5:26
  • 47 Rolling Updates and Rollbacks4:44
  • 48 Node Management Labels, Constraints, Drain and Promote5:15
  • 49 Self-Healing in Action Killing Containers and Nodes5:05
  • 50 Troubleshooting Swarm Quorum Loss, Stuck Tasks and Network Issues6:25
  • 51 Stacks Deploying Compose Files to the Cluster5:02
  • 52 Secrets and Configs Passwords Out of Your Images5:34
  • 53 Deploy the Sample App as a Stack with the Private Registry5:56
  • 54 Traefik as the Cluster Entry Point Routing by Hostname6:06
  • 55 Monitoring the Cluster with Prometheus, cAdvisor and Grafana5:50
  • 56 Centralized Logs and Resource Limits for Services4:48
  • 57 Backup, Restore and Disaster Recovery of a Swarm5:59
  • 58 What Is Ansible Agentless Automation over SSH5:43
  • 59 Install Ansible and Build Your Inventory5:44
  • 60 Ad-Hoc Commands and Modules5:13
  • 61 Your First Playbook Tasks, Idempotence and Check Mode5:21
  • 62 Variables, Facts and Templates with Jinja25:45
  • 63 Handlers, Conditionals and Loops5:58
  • 64 Ubuntu and Rocky in One Playbook OS-Aware Automation5:38
  • 65 Roles Structuring Reusable Automation6:12
  • 66 Ansible Galaxy and Collections5:17
  • 67 Ansible Vault Encrypting Secrets5:28
  • 68 Tags, Error Handling, Blocks and Retries5:23
  • 69 Dynamic Inventory from the Cloud API6:06
  • 70 Managing Containers with the community.docker Collection5:28
  • 71 Testing Playbooks, Project Layout and Troubleshooting Ansible5:43
  • 72 Install Docker on Every Node with One Playbook6:40
  • 73 Build the Swarm Cluster Automatically5:52
  • 74 Deploy Stacks, Secrets and the Registry with Ansible6:03
  • 75 Rolling OS Patching of Swarm Nodes with Drain and Reactivate5:41
  • 76 Disaster Recovery Rebuild the Whole Cluster from Scratch5:21
  • 77 Capstone Part 1 From Blank Servers to a Running Cluster6:27
  • 78 Capstone Part 2 Ship the App, Update It and Survive a Node Failure7:02
  • 79 Course Wrap-up What You Learned and Where to Go Next3:20
  • Master Docker, Docker Swarm and Ansible - Real Labs from the Basics to Clusters0:03

Requirements

  • Students should have basic computer literacy and a willingness to learn Linux server administration. Familiarity with fundamental operating system concepts such as files, folders, networking basics, and command-line usage is helpful but not mandatory. Learners will need a computer capable of running VMware Workstation Pro (or equivalent virtualization software), sufficient RAM to operate multiple CentOS 9 virtual machines, internet access for downloading software packages, and basic knowledge of using a web browser and text editor. No prior experience with Docker, Docker Swarm, Ansible, Infrastructure as Code, or AI coding assistants is required, as all essential installation and configuration steps are demonstrated through guided hands-on lab exercises.

Description



This hands-on practical lab course is designed for beginners who want to learn the fundamentals of modern container infrastructure deployment using Docker, Docker Swarm, Ansible Infrastructure as Code (IaC), and CentOS 9 Linux. Rather than focusing heavily on theory, the course emphasizes practical implementation by building a highly available Docker Swarm cluster inside VMware virtual machines. Students will also explore how AI-powered coding assistance with Windsurf can accelerate automation, configuration, troubleshooting, and infrastructure deployment tasks.

In today's software development and testing environments, organizations require fast, repeatable, and reliable deployment methods. Docker containers have become a standard way to package and run applications consistently across different environments. Docker Swarm provides native clustering and orchestration capabilities, allowing multiple servers to work together as a single platform. Ansible IaC simplifies server provisioning and configuration management by automating repetitive administrative tasks.

Throughout the lab exercises, learners will create CentOS 9 virtual machines, install Docker, configure Docker Swarm, automate deployment using Ansible playbooks, and establish a basic high-availability cluster suitable for application testing and learning environments. The course demonstrates real-world deployment workflows while keeping the complexity manageable for beginners.

The advantages of learning these technologies include improved deployment consistency, reduced manual configuration errors, faster environment setup, better scalability, and a stronger foundation for future studies in DevOps, Cloud Computing, Site Reliability Engineering (SRE), and Platform Engineering. By combining virtualization, containers, automation, and AI-assisted development tools, learners gain practical skills that are highly relevant in modern IT operations.

This course is ideal for aspiring system administrators, DevOps beginners, software testers, developers, students, and technology enthusiasts who want hands-on experience with container orchestration and infrastructure automation. No prior Docker Swarm experience is required.

As organizations continue adopting cloud-native technologies and automated infrastructure management, skills in Docker, Ansible, container orchestration, and AI-assisted operations are becoming increasingly valuable. This course provides a practical starting point that prepares learners for more advanced container platforms, cloud services, CI/CD pipelines, Kubernetes environments, and modern DevOps career paths.



Who this course is for:

  • Aspiring DevOps Engineers Learn the foundational technologies used in modern infrastructure automation, container deployment, and server orchestration. This course provides practical experience with Docker, Ansible, virtualization, and AI-assisted workflows that serve as building blocks for more advanced DevOps practices.
  • System Administrators and IT Support Professionals Gain hands-on experience deploying and managing Linux servers, automating configurations, and building highly available container environments. These skills can help reduce manual administration tasks and improve operational efficiency.
  • Developers and Application Testers Create repeatable testing environments using containers and virtualization. Learn how to deploy application-ready infrastructure quickly, enabling faster development, testing, and validation workflows.
  • Students, Beginners, and Technology Enthusiasts Build practical skills through step-by-step labs without requiring extensive prior experience. The course offers an accessible introduction to Linux, containers, automation, and modern infrastructure technologies used across the IT industry.