Containers at Facebook
summary
Facebook runs millions of containers created and destroyed daily using Linux primitives and a custom runtime built from systemd, cgroupv2 and BPF. The workflow uses Btrfs subvolume send/receive to stream root images, systemd-nspawn to boot snapshots, and systemd inside containers for late-binding composable services so updates ship only changed units. Demos show cgroup memory limits killing a process as expected, XDP/BPF for in-kernel filtering, and that composition avoids rebuilding whole images while keeping per-container accounting and observability.
AI-written summary · about
chapters (11)
- 0:00Introduction to Facebook containers
- 3:04Runtime components overview
- 7:41Linux cgroups v2 explained
- 11:44BPF and butterFS deep dive
- 13:52Why systemd in containers
- 22:58Live container filesystem demo
- 32:33Systemd container boot process
- 37:56Resource limits and monitoring
- 41:50Composable services concept
- 44:44Key takeaways and summary
- 47:57Q&A session
related talks
23mLife of a Container
36mLinux Kernel Building, Testing, and Deployment at Facebook
39mContainers are Linux - but what does it mean?
33mLinux Container Internals
01h 32mContainers – A Look Under the Hood
50mThe state of container security
47mContainers - the little Linux feature revolutionizing apps
01h 31mTutorial: Using Linux Primitives to Build Your Own Containers
