Workshop: Linux Containers In (Less Than)...
summary
Builds a working, Docker‑like container using standard shell commands: less than 100 lines of shell that call unshare/pivot_root, mount and overlayFS, and set up a cgroup v2 with cpu.max set to 50000 100000 (50% CPU). Uses a statically linked busybox root filesystem, creates PID, mount, UTS, network and user namespaces with UID 1000→0 mapping, and yields PID 1 inside the container; it runs and even supports nested containers, with minor rough edges (unmapped supplementary IDs show 65534).
AI-written summary · about
chapters (15)
- 0:00Introduction and setup
- 1:03Inspiration and container basics
- 2:06Shell commands and busybox
- 3:09Container scripts overview
- 4:35Union mounts and overlay FS
- 14:29Namespaces for isolation
- 23:08Resource isolation with cgroups
- 30:02Live demo of namespaces
- 40:39Final container setup script
- 57:31Pivot root and cleanup
- 1:02:10Creating the container
- 1:15:21Privilege and capabilities
- 1:20:07Cgroups and resource limits
- 1:25:07Networking and containers
- 1:26:34Q&A and conclusion
