Featured answer
Give me an overview of kiri
kiri is a small, fast container runtime written in Rust for macOS, Windows and Linux that runs Docker images and works with the docker CLI, Compose and buildx. On macOS and Windows it runs containers inside a small Linux VM, while on Linux it runs them directly on the kernel. It exposes the Docker Engine API, so the docker CLI, Compose and buildx send requests to the kiri daemon without changes. The daemon handles API requests in crates/kiri/src/daemon/api.rs, keeps its core logic in crates/kiri/src/daemon/engine.rs, and owns the VM, talking to the guest over vsock with message types from crates/kiri-proto/src/lib.rs. Inside the VM, the guest agent running as PID 1, built from crates/kiri-init/src/main.rs, starts each container in namespaces and a cgroup without runc, a shim or dockerd. The Application layer holds 238 of the 435 files, with Docs & Tooling at 42 and Config at 8, so start with the daemon files and crates/kiri-init/src/main.rs.
| Layer | Files |
|---|---|
| Application | 238 |
| Config | 8 |
| Docs & Tooling | 42 |
Basis: Inferred · knowledge graph· as of ac82581