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.
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.
- 01 Docker fundamentals Images, containers, the daemon, and containers vs VMs 5 min
- 02 Images & containers The lifecycle: pull, run, ps, stop, rm 4 min
- 03 Dockerfile basics FROM, WORKDIR, COPY, RUN, CMD and layers 4 min
- 04 Building images Build context, the layer cache and multi-stage builds 5 min
- 05 Running containers Run modes, logs, exec, stats and restart policies 6 min
- 06 Environment variables -e, --env-file, ENV vs ARG 6 min
- 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.
Stage 3 · Network internals
What the kernel does when containers talk, on one host and across many.
- 12 Namespaces and isolated stacks How Linux gives each container its own network 4 min
- 13 Default bridge and veth pairs docker0, virtual cables and why names fail there 6 min
- 14 Port publishing and NAT What -p really does on the host 4 min
- 15 The network model: CNM, libnetwork and drivers Sandbox, endpoint, network, and which driver to pick 6 min
- 16 host, none, macvlan and ipvlan Giving up isolation, or all connectivity, on purpose 4 min
- 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.