GUIDES
Docker Internals
Docker is a layered system built on top of Linux kernel primitives. Understanding its internals helps with debugging, performance tuning, and security hardening.
View the full interactive guide: Docker Internals
Topics covered:
- Component Map — how dockerd, containerd, the shim, and runc relate to each other
- dockerd — REST API, daemon.json, live-restore, and key file paths
- containerd — snapshotter, content store, metadata store, and the
ctrtool - runc & shim — OCI bundle structure, clone(2), pivot_root, and the startup sequence
- docker run Flow — end-to-end walkthrough from CLI to a running container process
- Namespaces — pid, net, mnt, uts, ipc, user, cgroup — what each isolates and how to inspect them
- cgroups v1 & v2 — memory, cpu, io, pids limits and how docker run flags map to cgroup files
- Capabilities — Docker’s default capability set, cap-drop/cap-add, and inspection
- Seccomp — default filter, custom profiles, debugging blocked syscalls
- OverlayFS — lowerdir/upperdir/workdir, copy-on-write mechanics, whiteout files
- Image Layers — OCI image layout, content-addressed blobs, layer caching in builds
- Volumes & Mounts — volume, bind, and tmpfs mount types and their implementation
- Network Drivers — bridge, host, overlay, macvlan, ipvlan, none
- Bridge Network — docker0, user-defined bridges, veth pairs, and inter-container DNS
- veth & iptables — veth pair lifecycle, MASQUERADE/DNAT rules, port mapping internals
- DNS & Service Discovery — embedded resolver at 127.0.0.11, name resolution flow
- Reference — inspection commands, cgroup limits table, storage driver comparison