Course · 20 chapters · about 2 hours · Picture-first guide to Docker

Docker, one picture at a time

20 short chapters that start every idea as a diagram: images and layers, volumes, Compose, how containers find each other, what the kernel does underneath, and how to ship images to production. Each chapter ends with a hands-on walk-through and a quick check.

Course mapFour stages: foundations, multi-container apps, network internals, and production.Foundationsimages · run · dataMulti-container appsports · DNS · ComposeNetwork internalsbridge · NAT · overlayProductionsecurity · CI · debug
20 chapters in four stages. Every chapter opens with diagrams, not paragraphs.

Diagram colours used in every chapter:

key idea / Docker itselfcontainer / good pathhost / watch outproblem / blockedneutral

Learning path

Stage 1 · Foundations

Build, run and configure one container, and keep its data.

  1. 01 Docker fundamentals Images, containers, the daemon, and containers vs VMs 5 min
  2. 02 Images & containers The lifecycle: pull, run, ps, stop, rm 4 min
  3. 03 Dockerfile basics FROM, WORKDIR, COPY, RUN, CMD and layers 4 min
  4. 04 Building images Build context, the layer cache and multi-stage builds 5 min
  5. 05 Running containers Run modes, logs, exec, stats and restart policies 6 min
  6. 06 Environment variables -e, --env-file, ENV vs ARG 6 min
  7. 07 Volumes and data Named volumes, bind mounts and tmpfs 5 min

Stage 2 · Multi-container apps

Connect containers by name and run a whole stack with Compose.

  1. 08 Ports & networking basics EXPOSE, -p and the localhost trap 4 min
  2. 09 Container-to-container communication Why IPs fail, and networks as walls 4 min
  3. 10 User-defined networks and Docker DNS Service discovery at 127.0.0.11 4 min
  4. 11 Docker Compose A whole stack in one file and one command 5 min

Stage 3 · Network internals

What the kernel does when containers talk, on one host and across many.

  1. 12 Namespaces and isolated stacks How Linux gives each container its own network 4 min
  2. 13 Default bridge and veth pairs docker0, virtual cables and why names fail there 6 min
  3. 14 Port publishing and NAT What -p really does on the host 4 min
  4. 15 The network model: CNM, libnetwork and drivers Sandbox, endpoint, network, and which driver to pick 6 min
  5. 16 host, none, macvlan and ipvlan Giving up isolation, or all connectivity, on purpose 4 min
  6. 17 Overlay networks and VXLAN Containers on different hosts, one network 4 min

Stage 4 · Production

Ship images that are small, safe and traceable, and debug them under pressure.

  1. 18 Production-ready images: users, healthchecks and limits Non-root users, healthchecks, limits, scanning, secrets 7 min
  2. 19 Registries and CI: tag, push and ship Tag, push, pull by digest, build in CI 5 min
  3. 20 Troubleshooting and isolation A debugging ladder you can follow under pressure 4 min