Containers Fundamentals — study notes
My own notes and exercises on namespaces, cgroups, images, runtimes, networking, storage and security.
Independent study notes on container fundamentals, written from scratch as a companion to the Linux Foundation's Containers Fundamentals (LFS253) course. They follow the same broad topic order, but none of the text, labs or quizzes come from that course, and this is not affiliated with or endorsed by the Linux Foundation.
Each lesson has a short explanation, the commands worth memorising, a hands-on exercise you can run on any Linux box with Docker or Podman, and a few self-check questions.
Create an account to enrol or sign in
Lessons
- How to use these notes
- A lab machine for the exercises
- Virtual machines vs containers
- The kernel building blocks: namespaces and cgroups
- Hands-on: cgroups, network namespaces and union filesystems
- chroot, LXC, LXD and systemd-nspawn
- Standards and runtimes: OCI, runc, containerd, CRI-O
- Installing the runtimes and tools
- Working with images and registries
- Running and managing containers
- The same operations with runc, Podman and crictl
- Building images
- Images from containers, and building with Podman and Buildah
- Container networking
- Container storage
- Podman networking and storage
- Container security
- From containers to Kubernetes
- Cheat sheet and final self-test