Run containers in their own microVM

cairn takes the container images you already use and runs each one in a Firecracker microVM on your Linux host. One command deploys it, with its own kernel and a private network.

boots in
~1.2 s
daemon
none
license
Apache-2.0
~/web
# cairn.toml
version = 1
app = "web"
image = "docker.io/library/nginx:1.27"
[[services]]
internal_port = 80
  [[services.ports]]
  port = 8080

            
Lifecycle

$ cairn deploy

Build and boot a release

$ cairn status web

Show status, endpoints, and log paths

$ cairn stop web

Shut down and keep the disk

$ cairn destroy web

Remove the app and its machines

Features

The isolation of a VM, the workflow of a container

Start with a container image you already use. Describe the app in cairn.toml and cairn builds the disk, sets up networking, and boots the VM.

01

Use the images you have

Point cairn at any container image, from Docker Hub or your own registry. No changes to how you build it.

02

Isolated by default

Every app gets its own kernel and its own private network. You choose which ports the outside world can reach.

03

Built to stay up

Data on volumes survives redeploys. Crashed apps restart on their own, and a failed deploy can roll back.

How cairn deploys your app

Each release boots in a fresh microVM. Across redeploys, the app keeps its configured network, published ports, and persistent volumes.

cairn.toml and an image go through cairn deploy into the app "web", whose current release points at a Firecracker machine. The app joins network "web", which publishes host 127.0.0.1:8080 to guest port 80, and mounts volume "data". cairn.toml + image cairn deploy APP "web" current release previous release kept for rollback machine 7K2… Firecracker microVM own kernel cairn-init your workload joins mounts network "web" subnet · NAT · DNS egress allowlist volume "data" survives redeploys host 127.0.0.1:8080 → guest port 80

cairn run

Run coding agents in microVMs

Give a coding agent free rein without giving it your machine. cairn run opens Claude Code, or any agent you choose, in a microVM with a copy of your project. Its changes sync back to your folder as it works.

$ cairn run
Read the guide
your folder ~/src/project
  • src/
  • app.tschanged
  • util.ts
  • Makefile
  • package.json
  • README.md
Review changes locally
⇄ sync
microVM · jailed project copy
  • src/
  • app.tsedited
  • util.ts
  • Makefile
  • package.json
  • README.md
Coding agent running

Security

A separate kernel, a jailed runtime

Guest kernel
Workloads make system calls to a separate Linux kernel inside the microVM.
Firecracker jail
Firecracker runs in a restricted filesystem (a chroot) with three device nodes and keeps its seccomp filter.
Privileged helpers
cairn-jail sets up the jail, and cairn-helper configures host networking. Access is limited to root and members of the cairn group.
Fixed paths
Both helpers ignore environment variables and use executable paths fixed at build time.

Install cairn on Linux

Requires an x86-64 host with Linux 6.17 or later and KVM.

Fedora
sudo curl -fsSLo /etc/yum.repos.d/cairn.repo https://packages.cairn.dev/cairn.repo
sudo dnf install cairn
sudo usermod -aG cairn $USER
Ubuntu
sudo curl -fsSLo /etc/apt/keyrings/cairn-packages.gpg https://packages.cairn.dev/cairn-packages.gpg
sudo curl -fsSLo /etc/apt/sources.list.d/cairn.sources https://packages.cairn.dev/cairn.sources
sudo apt update && sudo apt install cairn
sudo usermod -aG cairn,kvm $USER

Boot your first microVM

Start with nginx. Then bring your own image.