Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Container Security Essentials: Docker, Kubernetes & CI/CD
New
300 students

Container Security Essentials: Docker, Kubernetes & CI/CD

Scan images, harden Docker and Kubernetes, detect runtime threats, and build secure CI/CD pipelines with practical labs.
Last updated 11/2026
English
English [Auto],

What you'll learn

  • Understand container security fundamentals, common vulnerabilities, attack surfaces, and security best practices.
  • Build and secure Docker images using multi-stage builds, minimal base images, and least-privilege principles.
  • Identify and remediate container vulnerabilities using Trivy and other open-source security tools.
  • Harden Docker containers using security configurations, Linux capabilities, namespaces, and runtime isolation.
  • Secure Kubernetes workloads with RBAC, Pod Security Standards, Security Contexts, and NetworkPolicies.
  • Detect and investigate container runtime threats using Falco and security monitoring techniques.
  • Protect container secrets, credentials, and software supply chains using SBOMs and image signing.
  • Integrate automated container security scanning and security quality gates into CI/CD pipelines using GitHub Actions.
  • Apply DevSecOps practices to secure containerized applications throughout the software development lifecycle.
  • Complete a hands-on capstone project securing a containerized application from development through deployment.

Course content

13 sections • 112 lectures • 8h 11m total length
  • Welcome to Container Security Essentials4:12

    Welcome to Container Security Essentials: Docker, Kubernetes & CI/CD. This opening lecture introduces the course, explains why container security has become a core skill for modern engineering teams, and shows how each section builds toward a secured, end-to-end containerized application.


    We begin with the shift that makes this topic important. Organizations package applications as containers, run them on Docker hosts and Kubernetes clusters, and ship them through automated pipelines many times a day. That speed brings great benefits, but it also means that a weak base image, an exposed secret, an over-privileged pod, or an unchecked pipeline can reach production quickly and affect many systems at once.


    You will see the learning path. We start with fundamentals and build a safe local lab around a sample application called SecureCart. Then we secure images, scan for vulnerabilities, harden Docker runtime settings, and manage secrets and the software supply chain. Next we move to Kubernetes, covering workload hardening, policies, RBAC, network controls, and secrets. Finally we add runtime threat detection with Falco, security automation in GitHub Actions, security operations, and a final capstone.


    Each section pairs clear concepts with a hands-on lab, so you practice every control on a real application. By the end of this lecture you will understand what the course covers, which tools you will use, and how to get the most out of every lesson and exercise.

  • What Is Container Security and Why Does It Matter?4:13

    What is container security, and why does it matter so much? This lecture defines the discipline and explains why it deserves dedicated attention rather than being treated as a minor extension of server security.


    Container security is the practice of protecting containerized applications across their full lifecycle: the images you build, the registries that store them, the hosts and runtimes that execute them, the orchestration platforms that manage them, and the pipelines that deliver them. It combines ideas from application security, infrastructure security, and supply chain security.


    We discuss why it matters. Containers are widely used, which makes them an attractive target. They share the host kernel, so a weakness in isolation can affect the whole machine. Images are built from layers of third-party code, so vulnerabilities and malicious content can be inherited without anyone noticing. Containers are created and destroyed quickly, which makes traditional, slow security processes hard to apply. Misconfiguration, such as running as root, mounting sensitive host paths, or exposing the Docker socket, is a leading cause of problems.


    We also introduce the shared responsibility between developers, platform teams, and security teams, and the idea of shifting security left so that issues are found while building rather than after deployment.


    Finally, we preview the main control areas covered in the course. By the end of this lecture you will be able to explain what container security covers and why a structured, layered approach is necessary.

  • Containers vs. Virtual Machines: Understanding the Security Differences4:28

    Containers and virtual machines both isolate workloads, but they do so in very different ways, and those differences shape security decisions. This lecture compares them in detail.


    We begin with virtual machines. A hypervisor runs multiple virtual machines on one physical host, and each virtual machine has its own full guest operating system and kernel. Isolation is strong because the boundary between guests is enforced by the hypervisor and hardware virtualization features, though the cost is higher resource use and slower start times.


    Next, we describe containers. Containers run as isolated processes on a shared host kernel. Linux features such as namespaces limit what a process can see, control groups limit what it can consume, and additional mechanisms such as capabilities and system call filters restrict what it can do. Containers are lightweight, start quickly, and make efficient use of resources.


    The security implication is that the kernel is shared. A kernel vulnerability or a misconfiguration, such as a privileged container, can allow an attacker to break out of the container and reach the host or other containers. In contrast, a virtual machine escape is generally harder.


    We discuss how to choose. Use containers for speed and density, and add layers such as hardened configurations, sandboxed runtimes, or virtual machine isolation for untrusted or highly sensitive workloads. We also mention combining both, such as running containers inside virtual machines. By the end of this lecture you will be able to explain the tradeoffs clearly.

  • Container Architecture: Images, Registries, Runtimes, and Hosts4:39

    To secure containers, you must understand how they are built, stored, and run. This lecture explains the architecture of images, registries, runtimes, and hosts.


    We begin with images. A container image is a read-only package made of layers that contains an application, its libraries, and its configuration. Images are described by a Dockerfile or a similar build file, and each instruction usually creates a layer. Images are identified by names and tags, and more precisely by content digests that act as fingerprints.


    Next, we cover registries. A registry stores and distributes images. Public registries host community images, while private registries hold an organization's own. Pulling an image means trusting its publisher and the registry's integrity, which is why authentication, access control, and verification matter.


    Then we describe runtimes. A container runtime creates and manages containers from images, handling isolation setup, networking, and storage. Common components include the Docker engine and lower-level runtimes that implement the container standards. Orchestrators such as Kubernetes schedule containers across hosts.


    Finally, we discuss the host, the machine and operating system that run everything. The host kernel, the daemon, and the orchestration agents are all part of the trusted computing base.


    For each element we note typical security questions: what is inside, who can change it, who can run it, and what can it reach. By the end of this lecture you will have a clear mental model of the container ecosystem.

  • Understanding the Container Attack Surface4:08

    An attack surface is the sum of all the ways in which an attacker could try to reach or harm a system, and this lecture maps the attack surface of containerized applications.


    We begin with the image. It may contain vulnerable packages, outdated libraries, embedded secrets, unnecessary tools, and a root user. Next, the build process and registry are part of the surface: a compromised build system or an unprotected registry can introduce malicious images, and tags can be overwritten without notice.


    At runtime, the surface includes the container configuration. Privileged mode, excess capabilities, host path mounts, host network access, and exposure of the Docker socket can weaken isolation. The application itself has network ports, APIs, and dependencies that attackers can target. The shared kernel and the container runtime are also potential targets.


    In orchestrated environments, we add the Kubernetes API server, the control plane components, node agents, service accounts and their tokens, role bindings, network paths between pods, secrets storage, and ingress points. Observability and management tools, such as dashboards, may also be exposed.


    Finally, the delivery pipeline adds source repositories, build runners, pipeline credentials, and deployment mechanisms.


    We discuss how to reduce the surface: remove what you do not need, restrict what remains, and monitor everything. By the end of this lecture you will be able to describe the surface in each layer and prioritize which parts to protect first.

  • Common Container Security Threats and Real-World Failure Scenarios4:25

    Learning from common failures helps you recognize risk before it causes harm, and this lecture reviews typical container security threats and the failure scenarios behind them.


    We start with image-related issues. Teams pull a convenient public image without checking its origin, inherit known vulnerabilities from an outdated base image, or accidentally include credentials in a layer. Images tagged latest change without notice, so the same name can refer to different content over time.


    Next, we cover configuration failures. Containers run as root with all capabilities, privileged mode is enabled to make something work, the Docker socket is mounted into a container, sensitive host directories are shared, or no resource limits are set, which allows one container to exhaust the host. In Kubernetes, default service accounts with broad permissions, missing network policies that let every pod talk to every other pod, and exposed dashboards or API endpoints are frequent causes of incidents.


    We discuss runtime and operational threats: cryptomining after a compromise, lateral movement between workloads, data theft through over-privileged access, and attacks that attempt to escape the container. Supply chain problems, including malicious packages and tampered pipelines, also appear.


    For each scenario, we describe the underlying cause, usually a missing control or an unsafe default, and the control that would have limited the damage. By the end of this lecture you will be able to recognize common failure patterns and connect them to the defenses you will build in the course.

  • Defense in Depth and the Container Security Lifecycle4:26

    No single control can protect a containerized environment, and this lecture introduces defense in depth and the container security lifecycle as the framework for the whole course.


    Defense in depth means layering controls so that if one fails, another still limits the harm. For containers, the layers include secure images, trusted registries, hardened runtime configuration, host protection, orchestration policies, network segmentation, identity and access control, secrets protection, monitoring, and incident response.


    Next, we present the lifecycle. In the build phase, you choose minimal base images, write secure Dockerfiles, scan for vulnerabilities and secrets, generate software bills of materials, and sign images. In the distribution phase, you protect registries, verify provenance, and control who can push and pull. In the deploy phase, you apply admission policies, security contexts, and least-privilege access. In the run phase, you monitor behavior, detect threats, and respond to incidents. In the maintain phase, you patch, rebuild, and redeploy as new vulnerabilities appear, and you review controls continuously.


    We discuss the idea of shifting left, catching problems early when they are cheap to fix, while also shifting right with runtime detection for problems that slip through.


    We map each course section to a stage of the lifecycle so you can see the path ahead. By the end of this lecture you will understand how layered controls fit together across the whole lifecycle.

  • Hands-on: Identify Security Risks in a Containerized Application4:35

    In this hands-on exercise you will identify security risks in a containerized application, practicing the habit of assessing a system before attempting to harden it.


    Begin with the sample application files provided in the lab package. Read the Dockerfile and look at the base image, the user that the container runs as, the packages installed, the files copied in, and any ports exposed. Review the Docker Compose file for volume mounts, environment variables, privileged settings, and network configuration. Look at the application configuration for hardcoded credentials or insecure defaults.


    Next, create a simple risk table. For each issue you find, write the location, a description in plain language, the potential impact, and a rough severity rating. Examples might include a base image tagged latest, a container running as root, a secret stored in an environment variable, an unnecessary port, a missing health check, or no resource limits.


    Then map each finding to a layer of the container security lifecycle and the type of control that would address it, such as image hardening, runtime restrictions, or secrets management. Do not fix anything yet. The goal is to practice observation and prioritization.


    Finally, identify the three issues that you consider most serious and justify your choice. Save the table in your lab folder, because you will return to it in later sections to measure improvement after each control is applied.

  • Container Security Essentials – Hands-On Lab Package & Final Project1:09

    This lecture introduces the Container Security Essentials hands-on lab package and the final project, so that you know what resources are available and how the course practice fits together.


    We explain what is included. The package contains the SecureCart sample application with intentionally weak configurations, Dockerfiles, Compose files, Kubernetes manifests, example security policies, pipeline definitions, scripts, and checklists. Folders are organized by section, with starting files and reference solutions for each lab, so you can attempt each task yourself and then compare your result.


    You will learn how to download and extract the package and where to place it on your computer. We recommend creating a Git repository for your working copy so that you can track each change and see exactly how every security improvement alters the configuration. We also explain naming conventions and how labs build on each other.


    We then preview the final project. You will secure SecureCart end to end, hardening its images, applying runtime isolation, locking down Kubernetes workloads, access, and networking, adding runtime detection, integrating security gates into CI/CD, and validating and documenting the results. The project mirrors what a real security engineer would deliver.


    We also cover good practices for the labs: work only in your own isolated environment, never use real credentials, and reset the lab between experiments when needed. By the end of this lecture you will know where everything is and how to approach the practice work.

Requirements

  • No previous container security or cybersecurity experience is required.
  • Basic knowledge of Docker, containers, or DevOps concepts is helpful but not mandatory.
  • Familiarity with basic command-line commands is recommended.
  • A Windows, macOS, or Linux computer capable of running Docker and local Kubernetes environments.
  • At least 8 GB RAM, with 16 GB recommended for hands-on Kubernetes and security labs.
  • Internet access to download Docker, Kubernetes, and free open-source security tools.
  • Administrator privileges to install and configure the required software.
  • A willingness to learn through hands-on exercises, security demonstrations, and practical projects.
  • No paid cloud subscriptions, commercial security tools, or expensive infrastructure are required.

Description

This course contains the use of artificial intelligence.

Master Container Security with Hands-On Docker, Kubernetes, DevSecOps, and Cloud-Native Security Labs

Are you ready to secure modern applications and protect your containerized infrastructure from cyber threats?

Welcome to Container Security Essentials, a practical, hands-on course designed to help you master Docker Security, Kubernetes Security, Container Hardening, DevSecOps, and Cloud-Native Application Security.

As organizations increasingly adopt Docker containers, Kubernetes clusters, microservices, and cloud-native architectures, securing containerized applications has become an essential skill for DevOps Engineers, Cloud Engineers, Cybersecurity Professionals, Software Developers, and Platform Engineers.

This course takes you beyond theory. You'll learn how to identify vulnerabilities, reduce attack surfaces, enforce security policies, monitor runtime activity, and integrate automated security checks throughout the Software Development Lifecycle (SDLC).

Through practical demonstrations and real-world scenarios, you'll develop the confidence to secure container environments from development to production.

What You'll Learn

  • Container Security Fundamentals: Understand container architecture, isolation, attack surfaces, and common container security vulnerabilities.

  • Docker Security Best Practices: Secure Dockerfiles, harden Docker images, implement least privilege, and protect container runtime environments.

  • Container Image Vulnerability Scanning: Use Trivy to identify vulnerabilities, misconfigurations, exposed secrets, and outdated dependencies.

  • Secure Container Image Building: Implement multi-stage Docker builds, minimal base images, non-root users, and secure image configurations.

  • Kubernetes Security: Protect Kubernetes workloads using RBAC, Pod Security Standards, Security Contexts, and NetworkPolicies.

  • Container Runtime Security: Detect suspicious activity, unauthorized processes, and runtime threats using Falco.

  • Container Supply Chain Security: Explore SBOMs, image signing, Cosign, software dependencies, and artifact integrity.

  • DevSecOps and CI/CD Security: Integrate automated vulnerability scanning and security quality gates into GitHub Actions pipelines.

  • Secrets Management: Protect credentials, API keys, configuration files, and sensitive application data.

  • Container Security Monitoring: Understand logging, security alerts, threat detection, incident response, and continuous monitoring.

Hands-On Projects and Practical Labs

Learning container security should involve securing actual applications, not simply memorizing security concepts.

Throughout this course, you'll work with SecureCart, a sample containerized application designed to demonstrate common security weaknesses and practical defenses.

You'll build Docker images, perform container vulnerability assessments, implement Docker hardening techniques, configure Kubernetes security controls, investigate simulated security incidents, and automate security testing through CI/CD pipelines.

Your final capstone project brings everything together as you secure a containerized application using industry-relevant tools and practices.

Tools and Technologies Covered

Docker, Kubernetes, Docker Compose, Trivy, Falco, GitHub Actions, Cosign, Syft, kubectl, kind, Helm, Kyverno, Linux Security, RBAC, NetworkPolicies, SBOM, CI/CD, DevSecOps, and Container Security Scanning.

The course emphasizes free and open-source security tools, allowing you to develop practical skills without purchasing expensive enterprise security platforms.

Who Should Enroll?

This course is ideal for DevOps Engineers, DevSecOps Engineers, Cloud Security Engineers, Cybersecurity Analysts, Kubernetes Administrators, Platform Engineers, Software Developers, and IT professionals interested in Cloud Security, Application Security, and Container Security Engineering.

Basic command-line familiarity is helpful, but previous container security experience isn't required.

By the end, you'll understand how to build, deploy, monitor, and defend containerized applications using practical, defense-in-depth security techniques.

Start building safer containers, stronger Kubernetes deployments, and more secure DevOps pipelines today!

Who this course is for:

  • DevOps Engineers who want to strengthen container security and secure their application delivery pipelines.
  • DevSecOps Engineers looking to integrate vulnerability scanning, security automation, and compliance checks into CI/CD workflows.
  • Cybersecurity Professionals interested in container security, Kubernetes security, and cloud-native threat detection.
  • Cloud Engineers responsible for deploying and maintaining secure containerized applications.
  • Docker and Kubernetes Administrators who want to implement container hardening, access controls, and runtime protection.
  • Software Developers who want to build secure Docker images and reduce application security vulnerabilities.
  • Platform Engineers and SREs responsible for securing container infrastructure, Kubernetes workloads, and production environments.
  • Cloud Security Engineers seeking practical experience with container vulnerability scanning, Kubernetes security policies, and runtime monitoring.
  • IT Professionals and Students interested in transitioning into DevSecOps, cloud security, container security, or cybersecurity roles.
  • Technical Architects and Engineering Leaders who want to understand container security best practices and secure cloud-native application architectures.