Docker & Containers
Linux namespaces, cgroups, container images, volumes, compose networking, and debugging.
Chapter 1: Containers Are Just Linux Processes
Demystifying containers forever: no hypervisor, no guest OS—just ordinary Linux processes wrapped in namespaces and cgroups.
Chapter 2: OCI Images, Layers & OverlayFS
How Docker images are just tarballs + JSON metadata, copy-on-write OverlayFS mounts, layer caching, and why deleting files in a later RUN never shrinks images.
Chapter 3: Writing Fast, Tiny, Secure Dockerfiles & Multi-Stage Builds
Every Dockerfile instruction demystified, .dockerignore hygiene, exec vs. shell form, ENTRYPOINT vs. CMD, and multi-stage builds.
Chapter 4: Container Lifecycle, Signals (PID 1), Logs & Debugging
Restart policies, why PID 1 behaves differently on Linux (zombies & SIGTERM), `--init`/tini, stdout/stderr log streams, and `docker exec` triage.
Chapter 5: Volumes, Bind Mounts, tmpfs & Stateful Persistence
Where real data lives safely outside OverlayFS, named volumes vs. bind mounts, UID/GID permission fixes, and clean database backups.
Chapter 6: Docker Networking — Bridges, DNS, Host & Port Security
User-defined bridges vs. default docker0, embedded 127.0.0.11 DNS, host/none/internal networks, and preventing the Docker UFW bypass.
Chapter 7: Docker Compose — Multi-Service Stacks & Healthchecks
Declarative `compose.yml`, service dependencies with `condition: service_healthy`, `.env` configuration, profiles, and zero-drama updates.
Chapter 8: Registries, Image Tags, Digests & Supply-Chain Integrity
Docker Hub, GHCR, self-hosted Forgejo/Harbor registries, why tags are mutable while `@sha256:` digests are permanent, and Cosign signing.
Chapter 9: Resource Limits — CPU Quotas, Memory & OOMKiller
Setting `--memory`, `--memory-swap`, `--cpus`, `--pids-limit`, understanding Linux OOMKiller scores, and container-aware runtimes.
Chapter 10: Container Security — Capabilities, Seccomp & Hardening
Why `--privileged` equals root on the host, dropping Linux capabilities (`cap_drop: ALL`), seccomp syscall filtering, read-only rootfs, and rootless Docker.
Chapter 11: BuildKit, Cache Mounts, Secrets & Multi-Arch Builds
Unlocking modern BuildKit: parallel stage execution, persistent pip/apt/cargo cache mounts, zero-leak `--mount=type=secret`, and ARM64 + AMD64 builds.
Chapter 12: Container Internals — OCI, containerd, runc & Podman
Open Container Initiative standards, why Kubernetes dropped Docker Engine for containerd/CRI-O, daemonless rootless Podman, and Quadlets.
Chapter 13: Production Operations — CI/CD, Monitoring & Backups
Automated CI build-test-deploy pipelines, Prometheus/cAdvisor metrics, structured logging, automated DB backups, and clean maintenance.
Chapter 14: From Docker Compose to Kubernetes & Mastery Playbook
Exact 1-to-1 mapping from Compose concepts to Kubernetes Pods/Deployments/Services/PVCs, debugging comparison, and your complete container mastery roadmap.