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

> **TL;DR:** Kiri is an open-source (Apache-2.0) container engine that speaks the Docker Engine API, so your existing `docker` CLI, Compose files and buildx keep working. It drops dockerd, containerd, shims and runc, which means faster container starts and a much smaller idle footprint. It is young (version 0.2.1 as of November 2026), so it suits developer machines and CI better than production servers.

## What is Kiri?

Kiri is a lightweight replacement for Docker Desktop and OrbStack, written in Rust. Its name comes from the Igbo word _ntakịrị_, meaning "small".

-   **Platforms:** macOS 14+ (Apple silicon or Intel), Windows 10/11 (through WSL 2), and Linux (Ubuntu, Fedora and others).
    
-   **Where containers run:** inside one small Linux VM on macOS and Windows, or directly on the host kernel on Linux.
    
-   **What it is:** a Docker-API engine, the same layer as dockerd. It is not a Kubernetes CRI runtime.
    

## How it works

A normal Docker setup passes each container through several processes. Kiri collapses that chain into a single daemon plus a tiny launcher:

![Mermaid Diagram](https://mermaid.ink/img/pako:eNqNkbFOwzAQhl_luNkZSgtDByRohECBhQJLzOA61-RUxxfZLlBQ--woBYUKGPB2nz-d_19-RysV4RSXTl5sY0KCmzvtAQDielEH0zWQlxpzsSsKGp8-7_pTcSCbWDzcX3zTfFRqrPY2zG6uNT5Blp1BfjzgamDjUqMVnwz7QzwpNcaGWwXiCToKMEiDc1JqDGtvB3B6uGvISb76UaYoNRYc-B9Vir-rFH2VFQeGylArfuDjL56x5wQSoF5TTGBq8mmQJoc54ZkNWCeexr8j57Db7aBAhS2F1nCF03dMDbX9d1W0NGuXUH2SRxPYLBzF3lmKT5emZbfBKWam6xxlcRMTtQouHPvVrbHz_XwpPinQOKdaCB6uNSq4k4UkUXBF7pkSW6PgPLBxCqLxMYsUeIlq_8ic3_oso0n3itutwkU9EycBp3j00nAi3H4A6ha-sQ?type=png)

The launcher creates each container with a single `clone3` call into new namespaces and a cgroup, with an overlayfs root. Fewer processes means less fixed overhead on every start. The layout differs slightly per platform:

![Mermaid Diagram](https://mermaid.ink/img/pako:eNqNksFu2zAMhl-F49lOkbYnHwJkGYoFs7uhweqD1YNsMTYRWzIkuUlXJM8-2G4MdF2B6CJQ_Cnx089XLIwijHBbm31RSeshfhAaAMB1eWllW0GyXGUCG1n83Ah8GpP9Umyp8Gz0VNKvZJ4JVKbYkYVVvBb4BGEIAk9Xsx1bvrKdvhrTM2eKnUAIwwUk15nAPg9KUmP0W9lzLxkFN5nAmHV3gMckgrIj50GWpH0Av9bfYD5WLCC5zQQWRnvJmqybOiat_uFK1_eZwJS1Mnt3AVn6CZmWDSlouaU3mPQME-5Zz-hAk3Tv6j6G3LIqJ3mPlm5iuAbFzlsTwQiad1wrMFv4wZbPfOnFfPHAN1x1AV38Cd1g2ODcR9fi_7q2gPjm_AGs2QdgNEFLFqa2J-F7GDAafEVQGedhR1ZT_ZEvWa7gdDr19g17vL7HABuyjWSF0Sv6ipp-pBVtZVd7DMaTR2lZ5jW5XrM12t_JhusXjDCUbVtT6F6cpyaArzXrXSKLzRDfmX7EBG6oNAS_1wIDeDC58SaA71Q_k-dCBrC0LOsAnNQudGR5i8HwyIb_9L3Mb9sDHo8B5uXK1MZihF_2FXvC41-P6BnP?type=png)

On macOS the VM boots on first use, runs a custom ~10 MB kernel with a ~900 KB Rust guest agent as PID 1, and sleeps after 60 seconds of idle.

## Key features

-   **Docker compatibility:** `docker`, `docker compose`, buildx, `docker login`, and amd64 images through Rosetta on Apple silicon.
    
-   **Local domains:** every container gets `http://<name>.kiri.local`, with HTTPS from Kiri's own certificate authority.
    
-   **Built-in Kubernetes:** `kiri k8s start` runs a single-node K3s cluster in one container and adds a `kiri` kubectl context.
    
-   **Linux machines:** `kiri machine create dev --distro ubuntu` gives you a full Linux environment.
    
-   **Sharing:** `kiri share PORT` exposes a local port or container through a public link relayed by Kiri Cloud.
    
-   **Migration:** `kiri import` brings images, volumes and containers over from OrbStack or Docker Desktop.
    
-   **Desktop app:** a native window and menu bar item for containers, images, volumes and networks.
    

## Getting started

On macOS and Windows, download the installer from [runkiri.com/releases](https://runkiri.com/releases/). On macOS you can also use Homebrew: `brew install --cask libracoder/kiri/kiri`. On first launch Kiri creates a `kiri` Docker context, so it can sit beside Docker Desktop or OrbStack.

```bash
docker --context kiri run --rm alpine echo hello
docker --context kiri compose up -d
kiri import          # bring over OrbStack or Docker Desktop data
kiri k8s start       # optional local Kubernetes
```

On Linux, install the `.deb` or `.rpm` and then start the service. It is not started automatically after install.

```bash
sudo apt-get update
sudo apt-get install -y ./kiri_<version>_amd64.deb
sudo kiri host-access $USER    # enables the service and adds you to the kiri group
```

Log out and back in so the group applies. Verify the download against the published checksums before installing. Signed apt and dnf repositories are also available (announced in the 0.1.15 release notes), so `apt upgrade` or `dnf upgrade` can keep Kiri current.

There are two Linux packages. The full `kiri` package bundles the Docker CLI, Compose, buildx and a GTK desktop window. `kiri-lite` is the 2.7 MB engine alone, which suits servers and trying Kiri next to an existing Docker install:

```bash
export DOCKER_HOST=unix:///run/kiri/docker.sock
docker version --format '{{.Server.Platform.Name}}'   # prints: Kiri
```

## Performance

Kiri's published benchmark runs alpine with `true`, exits and removes it, on one Mac with the same `docker` CLI for every engine (p50 of 30 runs after 5 warm-ups):

| Engine | Via Docker API | Via docker CLI |
| --- | --- | --- |
| Kiri | 2.55 ms | 14.2 ms |
| Docker Desktop | 213 ms | 243 ms |
| OrbStack | 380 ms | 442 ms |

Setup changes the ratio. Another published run, on an Apple M3 Max with Kiri 0.1.13 and each engine limited to 2 CPUs and 8 GB, shows 22 ms for Kiri against 178 ms for Docker Desktop. The project's own notes also mention that OrbStack had 86 containers running during the first run, so treat that row with care.

Those are the project's own figures, so here is an independent test: ComputingForGeeks ran Kiri 0.2.1, Docker CE, Podman and containerd on identical 2 vCPU Ubuntu 26.04 VMs.

| Measurement | Kiri | Docker CE | Podman |
| --- | --- | --- | --- |
| Warm run --rm alpine true | 69.5 ms | 349.2 ms | 169.0 ms |
| compose up -d (nginx + redis) | 175 ms | 708 ms | 938 ms |
| Idle engine memory | 3.6 MB | 137.3 MB | no daemon |
| Image build, no cache | 2,035 ms | 1,953 ms | 1,674 ms |

The gap is about 5x on that Linux VM, smaller than the headline figures, but still large. Two caveats matter:

-   **Builds are not faster.** Kiri has no builder of its own yet, so buildx starts a BuildKit container (about 72 MB) on the first build and leaves it running. The tiny idle footprint only holds if you never build. A built-in builder is on the roadmap.
    
-   **The bundled Kubernetes costs memory.** The K3s cluster used about 459 MiB in the same test.
    

Benchmark on your own hardware before trusting any ratio.

## Limitations

-   **Not for Kubernetes nodes.** A kubelet cannot use Kiri as its runtime. `kiri k8s` runs Kubernetes on Kiri, with K3s using its own containerd inside.
    
-   **Isolation depends on the platform.** On macOS and Windows the VM sits between containers and your OS, as with Docker Desktop. On Linux there is no VM, so Kiri sits where runc sits, not where gVisor or Kata sit. The docs list Docker's default capabilities and a default seccomp filter, but the reviewer's `docker info` did not report seccomp.
    
-   **No SELinux confinement (as tested).** On Rocky Linux 10 the daemon and containers ran as `unconfined_service_t`, and the `:Z` volume option was accepted but did nothing.
    
-   **The** `kiri` **group is root-equivalent,** exactly like the `docker` group. Add only users you would give sudo.
    
-   **Networking clash with Docker CE.** When Docker CE runs on the same host, Kiri containers can silently lose network access (issue #261 on the Kiri tracker, open at the time of the review, so check its current status). The reviewer's workaround uses two rules in the `DOCKER-USER` chain, with `kiri+` instead of `kiri0` for Compose stacks. The rules do not survive a reboot.
    
    ```bash
    sudo iptables -I DOCKER-USER -i kiri0 -j ACCEPT
    sudo iptables -I DOCKER-USER -o kiri0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
    ```
    
-   **Linux rough edges.** The full RPM on Rocky needs CRB and EPEL (about 190 dependencies), so prefer `kiri-lite` there. Upgrades need an engine restart, which stops running containers. Vendor CI covers Ubuntu 24.04 and Fedora 44 only.
    
-   **Still maturing.** Testcontainers support only landed in 0.2.1, so test your own tooling before committing.
    

## How it compares

|   | Kiri | Docker | Podman |
| --- | --- | --- | --- |
| Architecture | One Rust daemon, no containerd or runc | dockerd + containerd + runc + shims | Daemonless, per-container processes |
| Docker CLI and Compose | Native, through the Docker API | Native | Docker-like CLI and compatibility socket |
| License | Apache-2.0 | Desktop is free for personal use and small businesses, paid for companies with 250+ employees or $10M+ revenue | Apache-2.0 |
| Maturity | 0.2.x, weeks old | Very mature | Very mature |
| Best for | Fast dev loops, short-lived CI containers | General use, widest ecosystem | Rootless, daemonless, SELinux hosts |

## Should you switch?

![Mermaid Diagram](https://mermaid.ink/img/pako:eNpNkcFqG0EMhl9F1XnmUOjJh4bEbmgIcUqcFoq3B-2O7B08O1o0Wjtb43cva7eNjxK_vv8DHbGRwDjDTZJD05IavC6qDABwe6xwyRyA4HGoWTMbF8gSGHTIFjsGUehVwtBYlOy3SoEhFkk0zTcVnv6SwHv4yQW8_wx36wpXRiMcorXQSDaKmTU4mL88-GcHC2l2rBP7m4SOcoW_rjBLOVPmxwqfKI9QWlHzKe45vMOKm84JWqb9-A-44LIz6d-15tdai3WFrzrCY9QINZcYGEYZFJpBlbNBYRv6i7S1DLspNxXymwHlcFnErhe1_8bzK-Mv6wqXAsVU8haUqUgGEyiHaE0LI09n6LBj7SgGnB3RWu6m3wTe0JAM3WXzgzRSnbhMmY1ku6cuphFn6KnvE_syFuPOwV2KefdEzeo830s2BxWueCsM3x8qdPAitZg4-MppzxYbcnCrkZKDQrn4who36M4lq_h7cvn4qX_D08lhvZ1LEsUZfji00RhPfwCsVMOF?type=png)

Migration is low risk because `kiri import` and the Docker context let you run Kiri beside your current setup. Stay with Docker or Podman if you also need SELinux integration, rootless operation or a mature release history.

## Verdict

Kiri delivers on its core promise: Docker compatibility with far less overhead, and the speedup is real even in independent testing. Its security and Linux packaging are still catching up, and builds do not benefit yet. Treat it as a strong developer-workstation tool today and watch the next few releases.

## Sources

-   [Kiri website](https://runkiri.com/) and [GitHub repository](https://github.com/libracoder/kiri)
    
-   [Kiri on Linux: install and benchmark vs Docker (ComputingForGeeks)](https://computingforgeeks.com/install-kiri-container-engine-linux/)
    
-   [Kiri: a smaller runtime behind familiar Docker commands (Better Stack)](https://betterstack.com/community/guides/scaling-docker/kiri-container-runtime/)

---

*Published via [ZyVOP](https://zyvop.com/kiri-a-lightweight-docker-compatible-alternative-written-in-rust-omvrr?utm_source=hashnode&utm_medium=crosspost&utm_campaign=syndication) — Write once in Markdown, auto-backup to GitHub, and syndicate to Dev.to, Medium & Hashnode in 1 click.*
