A small container runtime experiment written in Zig.
- bootstraps a Debian rootfs in
/tmp/rootfswithdebootstrap - starts a process in new mount, PID, UTS, and IPC namespaces
chroots into the rootfs- mounts
/proc - launches
/bin/shinside the container
- Zig
0.16.0 debootstrap
Build:
zig buildRun:
sudo -E ./zig-out/bin/acontainer- This currently runs rootful inside the container namespaces.
- The rootfs lives at
/tmp/rootfs. - Remove
/tmp/rootfsif you want a fresh bootstrap.