Docker, one picture at a time
Sixteen short chapters that start every idea as a diagram: images and layers, how a container gets its own network, how containers find each other, and what happens when they live on different hosts. Each chapter ends with a hands-on walk-through you can run.
Learning path
- 01 Docker fundamentals Images, containers, registries and the daemon
- 02 Images & containers The lifecycle: pull, run, ps, stop, rm
- 03 Dockerfile basics FROM, WORKDIR, COPY, RUN, CMD and layers
- 04 Building images Build context, .dockerignore and the layer cache
- 05 Running containers Detached, interactive, --rm and environment variables
- 06 Ports & networking basics EXPOSE, -p and the localhost trap
- 07 Networking: namespaces and isolated stacks How Linux gives each container its own network stack
- 08 Networking: CNM (sandbox, endpoint, network) The model behind every Docker network
- 09 Networking: libnetwork and drivers The engine that turns the model into bridges and tunnels
- 10 Networking: default bridge and veth pairs docker0, virtual cables and why names do not resolve
- 11 Container-to-container communication Why IPs fail, and how networks isolate tiers
- 12 Networking: user-defined bridge and Docker DNS Service discovery at 127.0.0.11
- 13 Networking: port publishing and NAT What -p really does on the host
- 14 Networking: host, none, and MacVLAN/IPVLAN Giving up isolation, or all connectivity, on purpose
- 15 Networking: overlay networks and VXLAN Containers on different hosts, one network
- 16 Networking: isolation, security and troubleshooting A debugging ladder you can follow under pressure