6Containers
- 6.1How Containers Work
Learn how containers differ from physical machines and VMs, and the two kernel features behind their lightness: namespaces and cgroups. Also covers the relationship between the container filesystem and its image (read-only layers plus a writable layer).
- 6.2Managing Docker Containers and Images
Learn day-to-day Docker operations: port mapping and the flat L2 network, inspecting state with docker ps/docker stats, lifecycle management with docker run/create/restart, pause/unpause and stop/kill/rm, working inside containers with attach/exec, the Docker registry with docker images/pull/rmi/import, and building images via Dockerfile with docker build/docker commit.

