Course · 16 chapters · Picture-first guide to Docker and container networking

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.

Course mapFour stages: foundations, network internals, bridge DNS and NAT, and networking beyond one host.Foundationsimages · run · portsNetwork internalsnamespaces · CNMBridge · DNS · NATveth · names · -pBeyond one hostoverlay · debugging
Sixteen chapters in four stages. Every chapter opens with diagrams, not paragraphs.

Learning path

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