~/talk

How to write a container daemon in Python

Talkat PyCon AU 2017 · 2017-08-03..08-08· [python]
slides:none on file

Claims a working container daemon implemented in ~140 lines of Python that pulls Docker tar layers and extracts them into a unionfs root, uses subprocess preexec_fn to chroot and set up namespaces, moves veth into a new netns and adds routes, and applies cgroups limits (50% CPU, 500MB). Uses NSenter to run inside namespaces and pyroute2 to create interfaces, spawns nginx (1.11) and verifies with curl; prototype works but lacks many Docker features and is flaky.

AI-written summary · about

  1. 0:00Writing a container daemon
  2. 2:10Why Docker in Python
  3. 7:13Python packages for kernel
  4. 14:12Building container from scratch
  5. 18:14Live demo of daemon
  6. 21:53Lessons learned and limits
  7. 24:28Closing and Q&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.