検索に戻る

libracoder/kiri

RustHTMLJavaScript

A small, fast container runtime for macOS, Windows and Linux with free Ngrok alternative

総合ランク
S
Star
14,133
Fork
682

最終コミットの鮮度

S

最終コミットから 0 日

直近のコミット頻度

S

週平均 101.5 コミット (直近4週)

Issue クローズ率

S

88% (306/347)

Issue 平均応答時間

S

平均 19 時間

ドキュメント充実度

S

README: あり / License: Apache License 2.0

リリース鮮度

S

v0.2.2 (10 日前)

README

Kiri

Kiri: a tiny, fast container runtime for macOS, Windows and Linux

Docker Desktop is slow to start and heavy when idle. Kiri is a lightweight replacement written in Rust. It runs your Docker images and works with the docker CLI, Compose and buildx you already use.

CI status Latest release Apache 2.0 License Discord 42 languages

Quickstart · Docs · Features · Download · Security · 简体中文

The Kiri window, showing containers grouped by Compose project with their state, ports, local domains and size


Before you begin

Make sure you have one of:

  • macOS 14 or later, on Apple silicon or Intel
  • Windows 10 or 11 with WSL 2, on x86-64 or Arm
  • Linux (Ubuntu, Fedora and others)

Step 1: Install and start Kiri

macOS, with Homebrew:

brew install --cask libracoder/kiri/kiri

Or download the installer for your system:

PlatformGet it
macOS 14+ (Apple silicon or Intel).dmg from runkiri.com/releases, or brew install --cask libracoder/kiri/kiri
Windows 10 and 11 (x86-64 or Arm, through WSL 2).msi from runkiri.com/releases
Linux (Ubuntu, Fedora and others).deb or .rpm from runkiri.com/releases

The first time you open Kiri, it sets up a kiri Docker context. Kiri updates itself, and checks each new release's signature first.

Then run your first container:

docker --context kiri run --rm alpine echo hello

Table of Contents


Why Kiri?

Kiri runs containers in one small Linux VM (or straight on the kernel on Linux) and speaks the Docker Engine API, so your tools just work. The name comes from the Igbo word ntakịrị, "small".

  • Fast: a container starts and exits in about 2.5 ms through the Docker API. That's around 80 times faster than Docker Desktop.
  • Light: the VM sleeps after 60 s idle, the daemon stays at about 15 MB, and it wakes in about 0.15 s.
  • Compatible: docker, Compose, buildx, docker login and amd64 images through Rosetta.
  • Local domains: http://<name>.kiri.local, with HTTPS from Kiri's own certificate authority.
  • More than containers: a one-command Kubernetes cluster and Linux machines.
  • A native window for containers, images, volumes and networks, plus a menu bar item.
  • In your language: the window comes in 42 languages, on macOS, Windows and Linux alike.

Quick Start

docker --context kiri run --rm alpine echo hello
docker --context kiri compose up -d
kiri k8s start                      # single-node Kubernetes as the `kiri` kubectl context
kiri machine create dev --distro ubuntu && kiri machine shell dev
kiri import                         # bring images, volumes and containers over from OrbStack or Docker Desktop

Docker's commands also work as kiri commands (kiri run, kiri ps, kiri compose up, and so on), and always target Kiri.


Features

AreaWhat you get
ContainersThe full lifecycle: run, exec, logs, attach, stop, kill, restart, pause, update, stats, top, diff, export, commit and cp both ways. Records survive a daemon restart.
Limits and security--memory, --cpus, --pids-limit, --shm-size. Docker's default capabilities and a default seccomp filter, --cap-add/--cap-drop, --privileged, --read-only, no-new-privileges.
NetworkingA default bridge, user networks with DNS by name and alias, -p/-P for TCP and UDP, --network host|none|container:<name>, IPAM (--subnet, --gateway, --ip), IPv6, host.docker.internal.
Local domainshttp://<name>.kiri.local for every container and <service>.<project>.kiri.local for Compose, with HTTPS from Kiri's own certificate authority.
StorageNamed and anonymous volumes, bind mounts of host paths, --tmpfs, --mount.
Imagespull, push, tag, save, load, history, search, with docker login credentials. amd64 images run through Rosetta on Apple silicon.
Buildsdocker build and buildx build through BuildKit, which stops when idle.
Composeup, down, ps, logs, exec, multiple networks, events. Projects are grouped in the window.
Kuberneteskiri k8s start: a single-node k3s cluster, ready in about 20 s, as the kiri kubectl context. LoadBalancer services are published on localhost.
Linux machineskiri machine create dev --distro ubuntu: your user, sudo and your home folder at the same path, with systemd if you want it.
Sharekiri share 3000 puts a local port or a container on the internet.
USB devices (beta)Hand a serial adapter, a Zigbee stick or a development board to your containers.
MemoryA balloon gives unused memory back while running, and the VM sleeps after 60 s idle.
The windowContainers, images, volumes and networks, each container with live logs, a command line and its files. A menu bar item shows what's running.
Importkiri import brings images, volumes and containers over from OrbStack or Docker Desktop.
UpdatesKiri updates itself after checking each release's SHA-256 and signature.

Every flag and the known issues are in docs/features.md.


Docker commands

Kiri speaks the Docker Engine API, so the docker CLI you already have works against it. Pick the context once and nothing else changes:

docker context use kiri
AreaCommands that work
Containersrun create start stop kill restart rm exec logs attach wait rename pause unpause update stats top diff export commit cp ps inspect container prune
Imagespull push tag images rmi save load history search login image prune
Buildsbuild buildx build
Networksnetwork create ls rm inspect connect disconnect
Volumesvolume create ls rm inspect prune
Composecompose up down ps logs exec
Systemsystem df events info version

The same commands work as kiri commands and always target Kiri:

kiri run -d --name web -p 8080:80 nginx     # then open http://web.kiri.local
kiri ps
kiri logs -f web
kiri exec -it web sh
kiri compose up -d
kiri build -t myapp .

Kiri's own commands:

CommandWhat it does
kiri startStart Kiri again after a Stop, as Start in the window does
kiri k8s start | stop | status [--json] | deleteA single-node Kubernetes cluster
kiri machine create NAME [--distro D] | list [--json] | shell NAME | stop | delete NAMELinux machines
kiri share PORT|CONTAINER [--name N]Share a local port or container on the internet
kiri import [orbstack | desktop-linux]Bring images, volumes and containers over
kiri domains [set --http N --https N | reset] [--json]The ports local domains answer on
kiri usb [list [--json]] | attach DEVICE | detach DEVICEUSB devices for containers (beta)
kiri build-with [docker | kiri]Which builder docker build uses
kiri update [--check]Install the newest release
kiri doctor [--json]Whether Kiri works here, one line per part, and what to run when one doesn't
kiri diag logs | reportLogs, and a report file to send with a bug
kiri bench [--runs N] [--network none|bridge]Measure container start on your machine
kiri uiOpen the window

--json prints one line of JSON for scripts, as the window gets it; kiri registry and kiri share status take it too.


Benchmarks

All figures are medians, measured with the same docker CLI and the same images for every engine, in one session on one machine.

macOS

alpine running true and removed, 30 runs, Apple silicon Mac:

EngineDocker Engine API, p50p99docker CLI, p50p99
Kiri2.55 ms4.72 ms14.2 ms17.4 ms
Docker Desktop213 ms774 ms243 ms351 ms
OrbStack380 ms829 ms442 ms2383 ms

Most of Kiri's 14 ms through the docker CLI is the CLI itself starting up.

What the engine costs you while it runs:

MetricKiri
VM cold boot to ready112 ms
Guest kernel boot to PID 18 ms
Clean VM shutdown2.2 ms
Wake from sleepabout 150 ms
Daemon memory while the VM sleepsabout 15 MB
Memory per container for a shim0 MB (there is no shim)
Daemon CPU when idle0.0 %
Host to guest round trip, p50 / p9931 µs / 62 µs
Guest kernel image10 MB
Guest agent (PID 1 and the container runtime)under 1 MB

Linux

Six engines on one 16-core x86-64 Ubuntu 24.04 machine:

Enginerun --rm alpine true200 MB container → host1 GB bind-mount write1 GB bind-mount readbuild, 3 layers, no cachePublished port
Kiri188 ms209 MB/s1467 MB/s3851 MB/s1113 ms10.3 Gbit/s
Docker Engine697 ms56 MB/s819 MB/s1307 MB/s1723 ms100.7 Gbit/s
Podman1105 ms70 MB/s593 MB/s907 MB/s1148 ms51.9 Gbit/s
nerdctl631 ms72 MB/s845 MB/s1485 MB/s1211 ms52.4 Gbit/s
Colima635 ms20 MB/s493 MB/s1496 MB/s2472 ms0.8 Gbit/s
Docker Desktop714 ms114 MB/s826 MB/s1283 MB/s2008 ms87.8 Gbit/s

Kiri starts a container 3.4 times faster than Docker Engine and reads a bind mount 2.9 times faster. It is slower on bulk traffic through a published port, which Kiri relays in user space: fine for a web app, visible for large transfers. The full write-up is in bench/ubuntu-2026-10-26.md.

Windows

Windows 11 on a 16-core x86-64 PC, both engines on WSL 2:

KiriDocker Desktop
docker run --rm alpine true78 ms491 ms
docker exec … true57 ms89 ms
200 MB container → host255 MB/s40 MB/s

The full write-up is in bench/windows-2026-10-25.md.

Run them yourself

kiri bench --network bridge --runs 30     # container start, on your machine
bench/suite.sh                            # the full Linux comparison

Method and every other figure are in bench/results.json.


Comparison

KiriDocker DesktopOrbStackColima
Open source✅ Apache-2.0❌❌✅ MIT
Free for work use✅Paid for larger companiesPaid✅
macOS✅✅✅✅
Windows✅✅❌❌
Linux✅✅❌✅
Works with the docker CLI, Compose and buildx✅✅✅✅
A window for containers, images, volumes and networks✅✅✅❌
Kubernetes✅✅✅✅
Linux machines✅❌✅❌
Local domains with HTTPS✅❌✅❌
VM sleeps when idle✅✅❌❌
Import from the others✅❌✅❌
Container start on macOS (Docker API, p50)2.55 ms213 ms380 msnot measured

How Kiri Works

docker CLI ─┐
compose ────┼─ Docker Engine API ─► kiri daemon ── vsock ──► guest agent (PID 1)
buildx ─────┤                         owns the VM           clone3 → container
kiri UI ────┘

The VM uses a custom 10 MB kernel, and its PID 1 is a ~900 KB Rust agent. That agent starts containers with a single clone3 into namespaces and a cgroup. There's no runc, no shim and no dockerd. More detail is in docs/development.md.


Documentation


Roadmap

Next are more ways to share (Tailscale and Cloudflare Tunnel, in 0.3.0) and Coolify support (0.4.0). See ROADMAP.md for what's in each release.


Community

Kiri is built in the open. Issues and pull requests are welcome: see CONTRIBUTING.md and the Code of Conduct. Looking for a first contribution? Browse the good first issue tickets.

Join our Discord

Star History Chart

Thanks goes to these amazing people:

Contributors

Security

Kiri updates itself, and checks each new release's signature first. To report a vulnerability privately, see SECURITY.md.


License

Apache-2.0. Third-party licences are in NOTICE. The guest kernel is Linux (GPL-2.0); its config, patches and the source offer are in guest/kernel.

The name "Kiri" and the Kiri logo are not covered by the licence. Forks are welcome, under a different name and logo.

この情報は最新ではございません。キャッシュを利用しており、数時間前の情報の可能性がございます。