Hydrangenius

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

  1. How to use these notes
  2. A lab machine for the exercises
  3. Virtual machines vs containers
  4. The kernel building blocks: namespaces and cgroups
  5. Hands-on: cgroups, network namespaces and union filesystems
  6. chroot, LXC, LXD and systemd-nspawn
  7. Standards and runtimes: OCI, runc, containerd, CRI-O
  8. Installing the runtimes and tools
  9. Working with images and registries
  10. Running and managing containers
  11. The same operations with runc, Podman and crictl
  12. Building images
  13. Images from containers, and building with Podman and Buildah
  14. Container networking
  15. Container storage
  16. Podman networking and storage
  17. Container security
  18. From containers to Kubernetes
  19. Cheat sheet and final self-test