Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

Practice library / Cloud security basics

Workbook · Medium · 3 hoursFree account

Docker & Container Security

Container escapes, Docker socket abuse, image scanning, and Kubernetes security.

  • docker
  • containers
  • container-escape
  • image-scanning
  • kubernetes
On this page 8 sections
  1. ·Chapter 1 — Container Security Concepts
  2. ·Chapter 2 — Docker Architecture & Attack Surface
  3. Locked: Chapter 3 — Docker Socket Abuse
  4. Locked: Chapter 4 — Container Escapes
  5. Locked: Chapter 5 — Image Security Analysis
  6. Locked: Chapter 6 — Kubernetes Security Basics
  7. Locked: Chapter 7 — Container Runtime Security
  8. Locked: Chapter 8 — Secure Containerisation

Containers share the kernel of the host, so a container escape is a real root shell on the server that runs it. This workbook covers container security from both sides of the fence. It walks through Docker's architecture and attack surface, the common escape routes (a mounted socket, excessive capabilities, the privileged flag, cgroup release_agent), the ways to read an image for secrets and CVEs, and the parts of Kubernetes that affect a pod. It ends with the controls that harden a real deployment: non-root users, dropped capabilities, read-only filesystems, scanning in CI, and runtime detection with Falco.

Chapter 1 — Container Security Concepts

Containers share the host kernel. They are isolated through namespaces and cgroups, not virtualisation. A container escape gives code execution on the host. Understanding this boundary is the foundation of container security.

Chapter 2 — Docker Architecture & Attack Surface

# Check if you are in a container
cat /proc/1/cgroup     # contains "docker" if containerised
ls /.dockerenv         # present in Docker containers

# Check capabilities (excessive caps = escape vector)
capsh --print
cat /proc/self/status | grep Cap

Sign in to continue

6 more sections are for signed-in members. It is free: sign in with Google.

Related

This workbook is extra practice for the course Cloud security basics. Do the lessons first.Open the course