~/talk

Containers from zero! An overview of cgroup and name-spaces

TalkinItalianat containerday 2022 · on Friday, 2022-10-28· [kubernetes]
slides:none on file

Builds a minimal container from scratch by creating PID and network namespaces, connecting two namespaces with a veth pair (red and blue), and moving processes into a cgroup. Uses unshare, nsenter, and small Go programs to spawn processes, assign IPs and show pinging, and enforces a cgroup v2 memory limit of 100 MB to throttle an allocator. Demonstrates remaining host leaks: root can kill alias PIDs and container mounts are accessible via /proc, so the prototype works but isn’t production-ready.

AI-written summary · about

  1. 0:00Introduction
  2. 1:55What is a container
  3. 5:05Namespaces and process isolation
  4. 9:02PID namespace creation
  5. 18:21Network namespace isolation
  6. 23:49Cgroups and resource isolation
  7. 27:18Cgroup v2 demo
  8. 30:31Combining namespaces and cgroups
  9. 33:25Creating namespaces in Go
  10. 35:37Docker filesystem isolation
  11. 37:26Entering container with NSEnter
  12. 39:14Conclusion
  13. 41:03Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.