Overview
In plain terms
Most server software today runs in containers: an application packed up together with everything it needs, and walled off from the rest of the machine so that it behaves the same everywhere and cannot trample its neighbors.
Tools like Docker and Podman make containers pleasant to use, but they do not build those walls themselves. When it is time to actually start a container, they hand the job to a small program that talks directly to the Linux kernel. That program is called a container runtime. If Docker or Podman is the front of the restaurant taking your order, the runtime is the kitchen.
RustRun is a container runtime. It is a pure Rust rewrite of crun, an existing runtime written in C. The goal is a drop-in replacement: the same command line and the same behavior, so that Podman, CRI-O and containerd can switch to it without being changed.
Rust was chosen because its compiler catches a whole family of memory bugs before the program ever runs. A container runtime is exactly the kind of program where those bugs hurt the most: it often runs with administrator rights, and it always handles input it should not trust.
Who this is for
- If you use Docker or Podman day to day, you do not need to do anything. This is plumbing underneath those tools, and you would only ever switch to it on purpose.
- If you run or build container infrastructure, RustRun is meant as a drop-in replacement for crun that you can try and compare. Read Project status before you do.
- If you read or write systems code, this is a large, careful port with a candid to-do list. Start with the repository documents listed at the end of this page.
What you get
- One program,
rustrun. It follows the OCI runtime specification, the standard that Podman, CRI-O and containerd use to ask a runtime to start a container. - An optional built-in engine. A Docker- or Podman-style command line (
pull,build,run,ps,logs,stop,rm,volumeandcompose) inside the same single file, with no background service (daemon) to install. It is on by default and can be switched off.
Project status
Which crun?
- Baseline: crun 1.30.1. The project started from this release, and every number below was measured against it.
- Current stable crun: 1.31, published on 12 November 2026. RustRun has not been compared against it yet. That release is mostly security hardening, so the comparison matters, and it is tracked as an open item.
Measured parity with crun 1.30.1
The project runs crun's own test files, unmodified, against both RustRun and the real crun 1.30.1 inside a Fedora x86-64 virtual machine. The tests fall into five groups. “Pass / fail” counts individual tests. These figures were last measured on 4 December 2026 and will change as the project moves; the repository has the latest.
| Test group | RustRun (pass / fail) | crun 1.30.1 (pass / fail) |
|---|---|---|
| Default (running as administrator, “root”) | 540 / 0 | 493 / 47 |
| Rootless (running without administrator rights) | 540 / 0 | 522 / 18 |
| SELinux (an extra Linux security mode) | 1 / 0 | 1 / 0 |
| systemd (resource limits managed by systemd) | 115 / 0 | 111 / 4 |
| Terminal (interactive shells and terminals) | 38 / 4 | 34 / 8 |
How to read that table honestly
- No test that crun passes fails on RustRun, in any group.
- The four RustRun failures are shared with crun. They all concern giving a container an interactive terminal, and they also fail on the real crun in the same virtual machine. They come from how terminals work in the test environment, not from a RustRun difference.
- Do not read “540 vs 493” as “RustRun is better than crun”. The test files are newer than the 1.30.1 program, so crun 1.30.1 fails tests for features it did not have yet.
- This is a slice, not the whole suite. The five groups are what the project re-runs after every change. The full suite was last recorded at 453 passed, 1 failed and 86 skipped (2 December 2026).
- Only x86-64 Linux has been tested.
- Speed and memory have not been benchmarked for RustRun.
Requirements
- Linux to run containers. The runtime uses Linux namespaces and cgroups, so it does not run natively on macOS or Windows. The test suite can be driven from macOS through Docker or OrbStack.
- Administrator (root) rights, or a user namespace for the rootless variants, to run containers.
- A Rust toolchain to build from source. rustup provides one on any Linux distribution, and the repository selects the stable channel for you.
- A C compiler and linker (
gccorclang), which the Rust compiler uses to link the program. - Git, to download the source.
- CRIU, only if you want checkpoint and restore. The test suite checks for version 4.3 or later.
Installation
There are four ways to get RustRun. Building from source is the only one that works today, because there are no tagged releases yet; the other three will work once the first release is published.
Option 1: build from source
Download the source from GitHub. The default branch is main.
git clone https://github.com/TheMapleseed/rustrun.git
cd rustrun
Build the runtime with the features most people need, then check that it starts:
cargo build --release -p rustrun --features seccomp,systemd,criu
./target/release/rustrun --version
The build produces a single program called rustrun. Tools that expect the name crun can use
RustRun through a symlink.
Keeping it up to date
Fetch the newest changes, then rebuild and test again:
git pull --ff-only
cargo build --release -p rustrun --features seccomp,systemd,criu
cargo test --workspace
--ff-only stops if your copy has changes the remote does not, so a merge never happens unless you choose it.
Option 2: the container image (after the first release)
Each release will publish a multi-architecture image, ghcr.io/themapleseed/rustrun (amd64, arm64, ppc64le,
riscv64 and s390x). It contains only the static rustrun program at /usr/local/bin/rustrun, so
you can copy it into your own image. Replace <tag> with a release tag from the
releases page:
FROM your-base-image
COPY --from=ghcr.io/themapleseed/rustrun:<tag> /usr/local/bin/rustrun /usr/local/bin/rustrun
To check that the image was built by the project's own automated pipeline:
gh attestation verify oci://ghcr.io/themapleseed/rustrun:<tag> --repo TheMapleseed/rustrun
Option 3: a release download (after the first release)
Each release will attach one static program per architecture
(rustrun-<tag>-linux-<arch>, plus a -disable-systemd variant), the source, and a
CHECKSUMS file. Check a download against the checksums and its build record before you run it:
sha256sum --check --ignore-missing CHECKSUMS
gh attestation verify rustrun-<tag>-linux-amd64 --repo TheMapleseed/rustrun
Option 4: a static build with Nix
The repository includes a Nix recipe that builds a statically linked, reproducible x86-64 program. With the Nix package manager installed:
git clone --recursive https://github.com/TheMapleseed/rustrun.git && cd rustrun
nix --extra-experimental-features "nix-command flakes" build "path:.#rustrun-static-amd64"
./result/bin/rustrun --version
Quick start
There are two ways to run a container. The built-in engine is the easier one to start with. The OCI runtime path is what Podman, CRI-O and containerd use.
With the built-in engine
The engine pulls an image and then runs it. It keeps images in a folder called the image store: the folder you name in
RUSTRUN_STORE, or else /var/lib/rustrun, or $XDG_DATA_HOME/rustrun.
export RUSTRUN_STORE="$HOME/.local/share/rustrun"
./target/release/rustrun pull alpine:latest
./target/release/rustrun run --rm alpine:latest echo hello
If everything works, the last command prints hello and removes the container when it finishes.
With an OCI bundle
The OCI runtime starts a container from a bundle: a folder holding a root filesystem and a
config.json file that describes the container. The spec command writes a default
config.json for you:
mkdir -p bundle/rootfs && cd bundle
../target/release/rustrun spec
Put a root filesystem in bundle/rootfs, then start the container with the usual OCI commands, such as
create, start and run, exactly as you would with crun. The command-line manual in
the repository lists every option.
Use it with Podman, CRI-O or containerd
Podman, CRI-O and containerd each have a setting that says which runtime to use. To try RustRun, point that setting at
the rustrun program. RustRun accepts the same OCI command line as crun and keeps container state in the
same layout, so the tools do not need to change.
For example, with Podman (this one is taken from the project's own README), where rustrun is installed at /usr/bin/rustrun:
podman --runtime /usr/bin/rustrun run --rm --memory 512k fedora echo it works
Command reference
The built-in engine uses the same verbs as Docker, so commands you already know carry over. This table maps each Docker command to RustRun.
| Docker or Podman | RustRun | What it does |
|---|---|---|
docker pull IMAGE | rustrun pull IMAGE | Downloads an image into the image store. |
docker images | rustrun images | Lists the images you have. |
docker rmi IMAGE | rustrun rmi IMAGE | Removes an image's tag. |
docker tag A B | rustrun tag A B | Gives an image another name. |
docker inspect NAME | rustrun inspect NAME | Shows details of an image or container as JSON. |
docker build -t T . | rustrun build -t T . | Builds an image from a Containerfile or Dockerfile. |
docker run --rm IMAGE CMD | rustrun run --rm IMAGE CMD | Runs a command in a new container, then removes it. |
docker run -d -p 8080:80 IMAGE | rustrun run -d -p 8080:80 IMAGE | Runs a container in the background and publishes a port. |
docker ps, logs, stop, rm | the same verbs | Lists, reads logs from, stops and removes containers. |
docker volume ... | rustrun volume ... | Manages named volumes that keep data between runs. |
docker compose ... | rustrun compose -f FILE.kdl ... | Runs several containers described in one file. The file uses the KDL format. |
Other commands worth knowing:
rustrun --versionprints the version.rustrun specwrites a defaultconfig.jsonfor an OCI bundle.rustrun featureslists what this build supports.- The OCI commands (
create,start,run -band so on) work as they do in crun.
Build options
Options are chosen when you build, with Cargo's --features flag. The command in
Installation turns on the three most common ones.
| Option | What it adds |
|---|---|
seccomp | A filter that limits which system calls a container may make. |
systemd | Lets systemd manage a container's resource limits. |
criu | Checkpoint and restore: save a running container to files and bring it back later. |
wasm, wasmer, wasmedge, wamr, spin | Optional handlers for WebAssembly workloads. |
mono | An optional handler for .NET (Mono) workloads. |
krun | A separate variant with its own manual in the repository. |
engine | The built-in Docker-style command line. On by default. |
If you only want the OCI runtime and not the engine, add --no-default-features to the build command. The
engine is the newer and less proven half of the project.
Testing and verification
Run the project's own tests before you rely on a build:
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo fmt --all -- --check
To run crun's own, unmodified test suites against RustRun, use the quick check below. It runs inside a Linux container, so it also works from macOS:
./testing/tests/run-rust-tests-docker.sh --smoke
On Linux you can point the suite at your build directly:
OCI_RUNTIME=$PWD/target/release/rustrun python3 testing/tests/test_commands.py
The repository's TESTING.rst lists every test suite, what it covers, and how to run each one.
Security
Reporting a problem
Please do not report security problems in public, for example in GitHub Issues or pull requests. Use GitHub Security Advisories so the problem can be fixed before it is published. Include:
- A short title and a clear description of the problem.
- The version or versions you tested, and the steps to reproduce it.
- Optionally, your assessment of the impact and a suggested fix.
- Whether the problem has been shared with anyone else or will be published.
The project aims to acknowledge a report within 3 business days.
What counts as a vulnerability
A security vulnerability is any problem where untrusted content can be used to escape the container, gain extra privileges, or otherwise compromise the host machine. The main source of untrusted content is the container's own root filesystem. Everything inside it, including programs, libraries, links and device files, must be treated as potentially hostile. For example, a crafted link inside the filesystem that tricks RustRun into reading or writing files on the host is a vulnerability.
What does not count
The container's configuration file (config.json) is expected to come from a trusted source, such as Podman,
CRI-O or containerd. Someone who controls that file can already ask for almost anything, so these are expected
behavior, not vulnerabilities:
- A configuration that mounts sensitive folders from the host into the container.
- A configuration that grants every capability or turns off the seccomp filter.
- A configuration whose user mapping gives administrator access.
Some RustRun-specific settings are marked as potentially unsafe, and are listed by rustrun features. They
accept any value and can weaken isolation. The tool that passes them to RustRun is responsible for checking them.
Supported versions
Fixes go into the latest release. Earlier releases might get critical security fixes on a best-effort basis, but there is no guarantee. For the full scope, read the repository's security policy and threat model.
Contributing
Contributions are welcome. In short:
- Talk first about big changes. Open an issue describing the change before you write a large patch, so everyone agrees on the direction.
- Use a Linux environment (a container, a virtual machine, or a real machine). Familiarity with namespaces, cgroups, capabilities and seccomp matters more than any one language.
- Run the checks in Testing and verification before you submit.
- Sign off your commits. A “Developer Certificate of Origin” is required: it is a line at the end of your commit message that certifies you have the right to pass the patch on as open source.
- Understand what you submit. If you use AI tools, make sure you understand and have tested the change. Pull requests that are clearly AI-driven with little thought behind them may be closed.
The full guide is in CONTRIBUTING.md.
Frequently asked questions
Do I need RustRun if I use Docker or Podman?
No. It is plumbing underneath those tools. You would only switch to it on purpose.
Is it ready for production?
Not yet. It is pre-release (version 0.0.0). Run your own workload against it on a test machine before you consider anything else. See Project status.
Is it faster than crun?
That has not been measured. The speed figures in the project's README are for upstream crun, shown as the bar RustRun is aiming at; they are not RustRun measurements.
Does it run on macOS or Windows?
Not natively. Containers need the Linux kernel. You can drive the test suite from macOS through Docker or OrbStack.
Does it need a background service?
No. The built-in engine is daemonless: the commands run directly, with nothing to install or keep running.
Which processors does it support?
Only x86-64 Linux has been tested. Releases are planned for amd64, arm64, ppc64le, riscv64 and s390x.
Is it all written in Rust?
The runtime is. Some C remains in the repository: the old test sources, an install wrapper, and the C interface used by the Python and Lua bindings. Like any Linux program, RustRun still uses the system C library underneath.
How do I know a download is genuine?
Check it against the CHECKSUMS file and verify its build record, as shown in
Installation.
Where do I get help or report a bug?
Open an issue on the GitHub repository. For security problems, use the private route described under Security.
What license is it under?
RustRun is free software under the GNU General Public License. The details are on the disclaimer page.
Glossary
- Container
- An application packed together with everything it needs and walled off from the rest of the machine.
- Container runtime
- The small program that actually starts a container by talking to the Linux kernel.
- OCI
- The Open Container Initiative, which defines the standard format for containers and how a runtime should behave.
- Bundle
- A folder with a root filesystem and a
config.jsonfile that describes the container. - crun
- The C-based runtime that RustRun is meant to replace.
- Drop-in replacement
- A program other tools can use in place of another one without any changes to those tools.
- Engine
- The optional part of RustRun that pulls and builds images and runs containers in a Docker- or Podman-style.
- Daemon
- A background service that stays running. RustRun's engine does not need one.
- Namespace
- A Linux feature that gives a process its own view of things such as processes, files or the network.
- cgroup
- A Linux feature that limits the CPU, memory and number of processes a group of programs may use.
- seccomp
- A Linux feature that filters which system calls a program may make.
- Capabilities
- Linux settings that limit what “root” inside a container is allowed to do.
- Rootless
- Running containers without administrator rights.
- CRIU
- A tool that saves a running program to files and restores it later.
- Parity
- In the environments that were measured, RustRun passes every test that the reference program passes.
More documentation
The repository holds the detailed, up-to-date documents this page summarizes:
- README: what RustRun is and where it stands against crun.
- Getting started: download, build and run.
- Documentation guide: which document answers which question.
- Engine plan: where the built-in engine is going.
- Testing guide: every test suite and how to run it.
- Project to-do ledger: what is finished and what is still open.
- Threat model: what counts as a security vulnerability.