DevOps

Kiri: A Lightweight, Docker-Compatible Alternative Written in Rust

A Rust-based, Docker-compatible container engine that starts containers in milliseconds, plus what its benchmarks mean and when to switch.

·
7 min read
AI-assisted

AI tooling disclosure

Generative AI materially contributed to this article.

Human review confirmed by the author.

Kiri: A Lightweight, Docker-Compatible Alternative Written in Rust

TL;DR Kiri is an open-source (Apache-2.0) container engine for macOS, Windows and Linux. It speaks the Docker Engine API, so the docker CLI, Compose and buildx keep working, but it replaces the usual dockerd → containerd → shim → runc chain with one small Rust daemon. Its strengths are very fast container start and low idle cost. It is beta software (Linux support especially), and it is a Docker-style engine, not a Kubernetes node runtime. Today it fits developer machines and CI better than production servers.

What is Kiri?

Kiri positions itself as a lightweight replacement for Docker Desktop and OrbStack. It runs your existing Docker images and is driven by the tools you already use. The name comes from the Igbo word ntakịrị, meaning "small".

Because it implements the Docker Engine API instead of inventing a new CLI, switching is mostly a matter of pointing the client at a different endpoint.

How it works

A traditional Docker stack hands a container request through several processes. Kiri collapses that path.

flowchart LR
    subgraph T["Traditional stack"]
        A1[docker CLI] --> A2[dockerd]
        A2 --> A3[containerd]
        A3 --> A4[shim]
        A4 --> A5[runc]
        A5 --> A6[Container]
    end
    subgraph K["Kiri on macOS and Windows"]
        B1[docker CLI] --> B2[kiri daemon]
        B2 -->|vsock| B3["Guest agent (PID 1)"]
        B3 -->|clone3| B4[Container]
    end

On macOS and Windows, the guest agent is a small Rust binary (about 900 KB) inside a VM with a custom, roughly 10 MB kernel. It creates each container with a single clone3 call into new namespaces with a cgroup. On Linux there is no VM: the daemon runs containers directly on the host kernel through a small kiri-init process per container.

flowchart TB
    C["docker / Compose / buildx / Kiri UI"] --> API["Docker Engine API"]
    API --> D[kiri daemon]
    D -->|macOS| V1["Small Linux VM"]
    D -->|Windows| V2["WSL 2"]
    D -->|Linux| V3["Host kernel (no VM)"]
    V1 --> X[Containers]
    V2 --> X
    V3 --> X

Removing intermediate programs does not remove isolation work: namespaces, mounts and resource limits are still set up, just with fewer hops. Kiri sits at the same layer as runc, so it adds no extra sandbox (as gVisor or Kata would) between containers and the kernel.

Getting started

Platform

Install

macOS 14+ (Apple silicon or Intel)

.dmg from runkiri.com/releases, or brew install --cask libracoder/kiri/kiri

Windows 10/11 (x86-64 or Arm, via WSL 2)

.msi

Linux (Ubuntu, Fedora and others)

.deb or .rpm

On first launch the desktop apps create a Docker context named kiri.

# Target Kiri explicitly
docker --context kiri run --rm alpine echo hello
docker --context kiri compose up -d

# Or make it the default for your Docker CLI
docker context use kiri

# Kiri-specific commands
kiri k8s start                                        # single-node Kubernetes
kiri machine create dev --distro ubuntu && kiri machine shell dev
kiri import                                           # copy from Docker Desktop or OrbStack

Docker commands also work as kiri subcommands (kiri run, kiri ps, kiri compose up) and always target Kiri.

Linux notes (from an independent test of Kiri 0.2.1 on Ubuntu 26.04 and Rocky 10):

  • Installing does not start the engine. It starts when you open Kiri or run sudo kiri host-access $USER, which adds you to the kiri group and enables the service; log out and back in afterwards.

  • Two packages exist: the full kiri (bundled Docker CLI, Compose, buildx and a GTK window) and the engine-only kiri-lite. On servers, prefer kiri-lite; the full RPM pulled in about 190 dependencies and needed EPEL on Rocky. Signed apt and dnf repositories exist, so apt upgrade and dnf upgrade can keep Kiri current.

Data is per-engine. Images, containers and volumes live in the engine that created them. Switching context does not move them. If a database looks empty after a switch, you are probably talking to a different engine.

Features

Feature

What you get

Docker compatibility

docker, Compose, buildx, docker login, amd64 images via Rosetta (macOS)

Idle savings

VM sleeps after 60 s idle and wakes in about 0.15 s; the daemon itself uses roughly 4–15 MB depending on platform and source

Local domains

http://<name>.kiri.local per container, with HTTPS from Kiri's own certificate authority

Kubernetes

Single-node k3s cluster in one container, exposed as the kiri kubectl context

Linux machines

Full distro VMs, e.g. Ubuntu, via kiri machine

Import

Bring images, volumes and containers from OrbStack or Docker Desktop

Native UI

Window for containers, images, volumes and networks, plus a menu bar item

Public sharing

Public HTTPS link to a local container; the demonstrated setup requires a Kiri Cloud account

Practical notes:

  • Documentation examples use both .kiri.local and .kiri.localhost, so check your installed version. An app written around localhost may need adjustments for cookies, redirects or callbacks under another hostname.

  • The bundled Kubernetes is Kubernetes on Kiri, not Kubernetes using Kiri as its runtime: pods run on the containerd inside k3s. In the independent Linux test it was Ready in about 17 seconds, used roughly 459 MiB, and kubectl was not bundled.

Performance: what the numbers mean

Vendor benchmark. Alpine running true, removed afterwards, median of 30 runs, same docker CLI:

Runtime

Docker Engine API

docker CLI

Kiri

2.55 ms

14.2 ms

Docker Desktop

213 ms

243 ms

OrbStack

380 ms

442 ms

Independent Linux test. Same-size 2 vCPU Ubuntu 26.04 VMs, one per engine, Kiri 0.2.1 (lower is better):

Measurement

Kiri

Docker CE 29.9.3

Podman 5.7.0 (rootless)

Warm run --rm alpine true, mean of 20

69.5 ms

349.2 ms

169.0 ms

Cold start, median of 5

341 ms

767 ms

513 ms

compose up -d (nginx + redis), median of 5

175 ms

708 ms

938 ms

Image build, no cache, median of 3

2,035 ms

1,953 ms

1,674 ms

Engine memory, idle

3.6 MB

137.3 MB

no daemon

Engine memory after three builds

82.0 MB

160.4 MB

no daemon

How to read this:

  • The headline multiplier depends on the path and platform. About 80× at the API level and roughly 17× through the docker CLI in the vendor table (most of Kiri's 14 ms is the CLI itself starting). Kiri's site headline is 8×: 22 ms vs 178 ms for Docker Desktop on an Apple M3 Max (Colima 152 ms, OrbStack 279 ms), each engine on 2 CPUs and 8 GB. That run and the table above use different methods, so their OrbStack figures differ. The independent Linux gap to Docker CE is about 5×.

  • It measures fixed overhead only. A database query, a compile or an HTTP request inside a running container is not 5–80× faster. The gain shows up when you create and destroy many short-lived containers, such as in test suites.

  • Kiri does not win everything. In the independent test builds were the slowest of the three, because Kiri hands builds to a BuildKit container that stays running afterwards (72.4 MB of the 82 MB figure above). In Kiri's own comparison, Colima reads bind mounts faster and OrbStack accepts more new HTTP connections per second, and the README says bulk traffic through a published port is slower because it is relayed in user space.

  • A small daemon is not the whole footprint. On macOS and Windows the VM, guest kernel, page cache and your workloads still use memory.

Limitations to know about

  • It is an engine, not a CRI runtime. Kiri sits at the same layer as dockerd. A Kubernetes node cannot use it the way it uses containerd or CRI-O.

  • It is beta, and moving fast. The site labels Kiri beta, and the current release, 0.2.2, is a security update that fixes several privately reported problems. The independent reviewer found rough edges on Linux and concluded Kiri suits developer workstations and CI runners, not servers, for now.

  • Weaker host isolation on SELinux systems (0.2.1 test). On Rocky 10 the daemon and containers ran as unconfined_service_t rather than container_t, and the :Z volume option was accepted but did nothing. 0.2.2 changes several security behaviors, including applying a seccomp filter that matches Docker's default, so re-test on the current version.

  • Networking can break next to Docker CE. In the 0.2.1 test, Kiri container traffic was silently dropped on a host that also ran Docker CE (issue #261); the workaround was extra DOCKER-USER iptables rules. I could not confirm whether 0.2.2 fixes it.

  • Builds are delegated for now. A built-in builder is on the roadmap.

  • Group membership is root-equivalent on Linux. Being in the kiri group grants root-level access, the same as the docker group.

  • Public sharing exposes your app. Anyone with the link can reach it, including debug routes or seed data meant for a private machine.

Kiri vs the alternatives

Tool

Reach for it when

Kiri

You launch many short-lived containers, want low idle cost, and like Docker-compatible tooling with local domains and built-in Kubernetes

Docker Desktop

You want the reference implementation and its ecosystem; a paid subscription is required for companies with 250+ employees or over $10M revenue, and for government entities

OrbStack

You are on a Mac and want a fast, Mac-focused Docker Desktop replacement

Colima

Bind-mount-heavy workloads matter more than startup time (per Kiri's own comparison)

Podman

You prefer a daemonless, rootless-first engine

containerd / CRI-O

You need a runtime for Kubernetes nodes

Should you switch?

flowchart TD
    S[Considering Kiri] --> Q1{"Need a Kubernetes node runtime or a production Linux server?"}
    Q1 -->|Yes| R1["Use containerd, CRI-O, Docker CE or Podman"]
    Q1 -->|No| Q2{"Is container startup or idle RAM a pain point?"}
    Q2 -->|No| R2[Stay on your current setup]
    Q2 -->|Yes| T["Trial Kiri side by side using --context"]
    T --> Q3{"Compose, Dockerfiles, volumes and networking all pass?"}
    Q3 -->|Yes| R3[Adopt Kiri]
    Q3 -->|No| R4[Keep your current runtime for that project]

A trial costs little, because contexts let Kiri and your current engine coexist:

  1. Run the same operations on both with an explicit --context.

  2. Exercise your real Compose file, Dockerfile stages, registry login and cleanup, not just hello-world.

  3. Check volume ownership and permissions, and keep the source engine until copied data is verified.

  4. Measure total host memory, not just the daemon, and record versions with each result.

Verdict

Kiri is a credible, Docker-compatible way to cut container lifecycle overhead, and its local domains, idle resource reclamation and bundled Kubernetes make it a convenient all-in-one dev environment. It is best suited to test-heavy and iteration-heavy workflows on a laptop or CI runner. Because it is beta and still evolving, evaluate it against your own workload instead of assuming it is a drop-in replacement, and keep production servers on a mature engine for now.

Sources

Comments(0)

Join the discussion by logging into your account.

No comments yet. Be the first to comment!

Shobit Singh

Passionate developer sharing knowledge about modern web technologies and best practices.

Subscribe to Shobit Singh's Newsletter

Direct email dispatches when new stories are published. Zero algorithms.