Skip to content
Phạm Nam

Search

Type a keyword to search the posts.

Go back
en

Kiri: Lightweight Rust Runtime to Replace Docker Desktop

Kiri is a lightweight Rust container runtime: a 10 MB VM kernel, Compose files run unchanged, and it sleeps after 60s idle. Only 14 days old and in beta.

9 min read—

Illustration of Kiri: a lightweight, fast container runtime written in Rust, replacing Docker Desktop on macOS, Windows and Linux

Kiri: Lightweight Rust Runtime to Replace Docker Desktop

You open your laptop in the morning and Docker Desktop is already holding nearly 2 GB of RAM before you run your first container. The fan spins up, the battery drops, and all you wanted was to run a few Compose services for the project you left unfinished. On macOS, OrbStack is far lighter, but it only exists on macOS, while the Windows machine at the office and the Linux box at home each do things their own way. You want one light runtime for all three systems, where your old docker-compose.yml still runs exactly as it is.

Kiri, an open-source container runtime written in Rust, launched on 02/11/2026: 6,472 GitHub stars in just 14 days, v0.2.1 released on 15/11/2026. This article introduces Kiri at face value: what it can do, why it is light, and why at 14 days old it belongs on a personal machine, not in place of Docker Desktop for a whole team.

What is Kiri? A container runtime, not a second Docker Desktop

Kiri is not a web UI for managing Compose like Dockge, nor a self-hosted PaaS like Coolify. It is a container runtime: the thing that directly runs your containers, taking the place of Docker Desktop or OrbStack.

The difference is in how it is organised. Docker Desktop runs a heavy dockerd daemon inside a Linux VM, plus several helper processes. OrbStack is lighter but keeps one shim per running container — by Kiri’s own numbers, 143 containers held 1.13 GB of shims on their test machine. Kiri drops dockerd, runc and shims, leaving only a small daemon and a Rust agent as PID 1 inside the VM.

Kiri speaks the Docker Engine API, so the tools you already use do not need to change. docker, Compose, buildx and docker login all work through a Docker context named kiri, created when you first open the app. You can also type Docker commands as kiri commands: kiri run, kiri ps, kiri compose up.

Kiri’s author is anonymous; the repo only lists “Kiri contributors”. Stars grew very fast — 3,776 on the morning of 15/11, 4,526 that afternoon, 6,472 on the morning of 16/11 — but fast growth is not maturity.

Architecture: a 10 MB VM kernel, a 900 KB Rust agent, one clone3 call

Kiri’s architecture is compact enough to fit in a single diagram:

flowchart LR
    A["docker CLI / Compose / buildx / Kiri UI"] --> B["Docker Engine API"]
    B --> C["kiri daemon<br/>owns the VM"]
    C -->|vsock| D["guest agent<br/>PID 1, Rust ~900 KB"]
    D -->|clone3| E["Container"]
    subgraph VM["Linux VM — custom kernel 10 MB"]
        D
        E
    end

On macOS and Windows, Kiri runs containers in a small Linux VM with a custom kernel of just 10 MB. On Linux, it runs directly on the host kernel, with no VM at all. Inside the VM, PID 1 is not systemd or a traditional init but a Rust agent of about 900 KB, which starts a container with a single clone3 system call to create namespaces and cgroups. No runc, no shim, no dockerd in the middle.

By the project’s own numbers, measured on one Apple Silicon Mac: cold boot to ready takes 112 ms, against 810 ms with a stock kernel; one vsock round trip takes 31 µs, and a full container cycle through the Docker API takes 3.1 ms. These numbers have not been independently verified, but the architecture is clear: fewer layers means a shorter path from command to container.

Performance: genuinely fast, but read the numbers correctly

This is the section to read most carefully: the Kiri README says “~80× faster than Docker Desktop”, but that number is only true for one measurement path.

The README benchmark runs alpine with the true command, then removes the container, taking the median of 30 runs, using the same docker CLI for all three runtimes:

RuntimeVia Docker Engine APIVia docker CLI
Kiri2.55 ms14.2 ms
Docker Desktop213 ms243 ms
OrbStack380 ms442 ms

The ratio 213 / 2.55 is about 83× — that is where “~80×” comes from. But when you type commands the way a real user does, via the docker CLI, the ratio is 243 / 14.2, about 17×. Still far faster, but not 80×. The runkiri.com homepage uses the headline “8× faster than Docker”, measuring docker run end to end: Kiri 22 ms, Docker Desktop 178 ms, Colima 152 ms, OrbStack 279 ms, each engine limited to 2 CPUs and 8 GB of RAM.

Three numbers — 80× on the API path, about 17× via the CLI, 8× end to end — are all correct, but they measure three different things. This article does not use “80×” as its headline number, and neither should you.

The benchmark method and raw numbers live in bench/results.json in the repo, rerunnable with kiri bench. The homepage CPU and memory chart for 10 containers is labelled “Sample”, so it is not used here as evidence.

Compatibility: old Compose files run unchanged

For anyone running Docker daily, the first question is not “how fast is it” but “will my existing setup still work”. The answer is yes, within the listed scope.

amd64 images run via Rosetta on Apple Silicon, the --platform flag is honoured, and docker login works normally. Builds via docker build and buildx build use BuildKit running inside a Kiri container, stopping when idle; amd64 build steps on Apple Silicon run through Rosetta.

Compose supports up, down, ps, logs, exec, multiple networks and events. Containers support the familiar commands — run, exec, logs, stop, restart, rm, pause, stats, two-way cp, prune — and state survives a daemon restart. Resource limits and security follow Docker defaults, from --memory and --cpus to --privileged and --read-only. kiri import brings images, volumes and containers over from OrbStack or Docker Desktop, so you can try Kiri without rebuilding everything from scratch.

Installing on macOS, Windows and Linux

Kiri ships for all three operating systems: macOS 14+ (Apple Silicon or Intel) via a .dmg; Windows 10/11 (x86-64 or Arm, via WSL 2) via an .msi; Linux (Ubuntu, Fedora and others) via .deb or .rpm packages. On Linux there is also a mode that runs directly on the host kernel, with no VM. Updates come via kiri update, which checks SHA-256 and signature first. The UI is a native window, not Electron, and supports 38 languages, including Vietnamese. After installing, the familiar workflow stays intact:

docker --context kiri run --rm alpine echo hello
docker --context kiri compose up -d

.kiri.local domains, HTTPS and Kiri Share

Every container gets its own local domain: when you first open the app, Kiri enables http://<container-name>.kiri.local, or you can use http://<name>.kiri.localhost with no setup at all. Compose services get <service>.<project>.kiri.local, and the label dev.kiri.domain=api.myapp sets a custom name. HTTPS is available too, with Kiri’s own CA in ~/.kiri/tls. Typing api.myapp.kiri.local instead of remembering port 8083 or 3001 is a real improvement.

Kiri Share is the feature behind the “free Ngrok alternative” tagline in the repo description — but it needs a measured description. You click Share on a running container and Kiri creates a public link at runkiri.cloud over HTTPS, which lives until you click Disconnect. You can reserve a name like myapp.runkiri.cloud, and the first visit shows a Kiri warning page; from the command line it is kiri share web or kiri share 80. It is a temporary public link for a quick demo, not a permanent tunnel, and it does not replace Ngrok or Cloudflare Tunnel — anyone with the link can reach it, so do not share a service holding sensitive data.

One-node Kubernetes and Linux machines

kiri k8s start builds a single-node k3s cluster inside a container, ready in about 20 seconds, with a kubectl context named kiri. LoadBalancer services are published on localhost, enough to try a Helm chart or a local manifest without minikube or kind.

kiri machine create dev --distro ubuntu && kiri machine shell dev creates a full Linux machine: your own user, with sudo, /Users at the same path, and a --systemd option to boot systemd as init. USB devices are still in beta: you can attach a serial adapter, Zigbee stick or dev board to a container on all three operating systems.

Saving resources: sleep when idle, return RAM when spare

Kiri saves resources in two ways: the VM sleeps after 60 seconds of inactivity and wakes in about 0.15 seconds, while a balloon mechanism returns spare memory to the host even while the VM is running. The daemon itself takes about 15 MB. For laptop users this is the most tangible benefit: no need to stop the runtime before closing the lid, and RAM is not locked inside the VM.

Limits and known bugs: stated plainly before you install

Kiri is 14 days old, in beta, with 103 open issues at the time of checking. The right frame for it now is early-stage testing on a personal machine, not a Docker Desktop replacement for a team or for production.

Every performance number here is self-reported by the project, measured on a single Apple Silicon Mac, with no independent verification — remember all three ratios (80× on the API path, about 17× via the CLI, 8× end to end), not just the biggest one.

Two known bugs are documented. First, docker build --add-host name:host-gateway with BuildKit fails because buildx refuses host-gateway for every builder except Docker’s built-in one, while Kiri’s builder is a docker-container builder. The workaround is a direct IP address — --add-host name:172.18.0.1 on Windows and Linux, 198.19.248.254 on Mac — or disabling BuildKit with DOCKER_BUILDKIT=0.

Second, on Mac, an attached USB device leaves its container when the Mac sleeps, because macOS removes the device from the bus on sleep; Kiri reattaches it on wake, but long unattended jobs should use caffeinate -s.

Who should try it, and who should wait

In my view, try Kiri now if you run Docker on a personal laptop, find Docker Desktop heavy, want one runtime for all three systems, and accept a few rough edges in exchange for speed and RAM.

Wait if you need stability for a team, for CI, or for production — a 14-day-old project with an anonymous author, 103 open issues and incomplete docs is not mature enough to be shared infrastructure.

Lessons learned

  1. An architecture with fewer layers in between is the source of the speed. Kiri is fast because it drops dockerd, runc and shims: a 900 KB Rust agent calls one clone3 and the container runs.
  2. A performance headline can be true and still mislead. “80×” is only true on the API path; via the CLI it is about 17×, end to end 8×. Always ask what a number measures, and with which tool.
  3. Compatibility matters more than speed. Kiri’s biggest value today is that old Compose files run unchanged and kiri import brings old setups over.
  4. Saving RAM comes from behaviour, not just size. A VM that sleeps after 60 seconds idle and balloons RAM back to the host is what you feel every day.
  5. A project’s age is a technical parameter. 14 days old, in beta, anonymous author, 103 open issues — data for deciding how far to trust it.
  6. A temporary public share link is not a permanent tunnel. Kiri Share is handy for quick demos, but not for sensitive services or long-term needs.
  7. A known bug with a workaround is still usable. The host-gateway BuildKit bug and USB detach on Mac sleep both have documented workarounds — read the bugs section before installing.

Verification scope

Checked on 16/11/2026, against the official README, docs/features.md, runkiri.com and the Releases page of libracoder/kiri: repo created 02/11/2026, 6,472 stars and 288 forks at check time, v0.2.1 on 15/11/2026, Apache-2.0, a 10 MB VM kernel and a Rust agent of about 900 KB, the performance numbers in the table, .kiri.local domains, Kiri Share, one-node k3s, Linux machines, and the two known bugs in this article. Performance numbers are self-reported, measured on a single Apple Silicon Mac, not independently verified; numbers like 60 seconds idle or a 15 MB daemon are configuration and designed behaviour, not benchmarks. Not verified: Kiri was not run by hand in this environment.

References


Related posts

Bình luận

Bình luận được duyệt trước khi hiển thị.

Đang tải bình luận…

Để lại bình luận