# crun

> A fast and lightweight fully featured OCI runtime and C library for running containers

Source: https://talira.ai/catalog/crun-bkgs01e8
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [devops / containers / runtimes](https://talira.ai/categories/devops/containers/runtimes), [devops / containers](https://talira.ai/categories/devops/containers)
- Platforms: linux, cli[^4]
- Licence: GPL-2.0-or-later AND LGPL-2.1-or-later[^5][^6]
- Pricing: Free and open source[^5]
- Free tier: yes[^5]
- Self-hostable: yes[^7]
- Backed by: [Red Hat](https://talira.ai/orgs/red-hat.md)
- Funding: acquired by IBM (2019)[^8]

crun is a low-level OCI container runtime written in C: given an OCI runtime config.json and a root filesystem, it sets up namespaces, cgroups, capabilities, seccomp, devices, mounts and LSM labels and starts the container process, as [runc](https://talira.ai/catalog/runc-mh439p69.md) does. Its README shows it running 100 containers in about half runc's time and in a much smaller memory limit, and it's also a library (libcrun) that programs can embed without an external process, with Lua and Python bindings. Experimental handlers run WebAssembly workloads directly and start containers inside a KVM microVM through libkrun (the krun mode). Red Hat stewards it; the crun program is GPL-2.0-or-later and libcrun LGPL-2.1-or-later.

## Links

- GitHub: https://github.com/containers/crun
- Docs: https://github.com/containers/crun/blob/main/crun.1.md

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/crun>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/crun>[^2]

## Problems it solves

- a faster, lower-memory OCI runtime than runc for Podman or CRI-O
- run containers under very tight memory limits where runc fails to start them
- start many short-lived containers quickly on the same host
- embed an OCI container runtime as a C library in my program, without spawning a separate process
- run a WebAssembly module as a container with Podman on Kubernetes
- start a container inside a lightweight KVM VM using the same OCI tooling
- checkpoint a running container with CRIU and restore it later
- run rootless containers as an unprivileged user with cgroup v2 and systemd
- a statically linked container runtime binary built reproducibly with Nix
- verify signed releases of the low-level container runtime we ship

## Features

- implements the OCI Container Runtime specification
- faster than runc in its README's benchmark, with a much lower memory footprint
- libcrun library for embedding, with Lua and Python bindings
- create, start, run, exec, pause, resume, kill, delete, list, ps, update, spec, checkpoint and restore commands
- rootless containers; spec --rootless writes a config for them
- systemd cgroup manager and cgroup v2 support
- checkpoint and restore through CRIU, including pre-dumps and lazy pages
- seccomp, AppArmor and SELinux labels, with OCI annotations such as a seccomp notify receiver
- experimental wasm handler that runs .wasm or .wat modules as containers
- experimental krun handler that runs containers in a KVM microVM through libkrun
- release artifacts signed with keys in crun.keyring
- reproducible static builds through Nix

## Limitations

- Doesn't pull or build images: crun isn't a container engine, so Podman, CRI-O or containerd call it[^3]
- Doesn't run Windows containers: crun runs Linux containers that follow the OCI format[^4]

## Capabilities

- Has a command line tool: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.42 out of 1.
Signals: backing 0.55, extensibility 0.20.

- backed by Red Hat
- funding: acquired by IBM (2019)

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [Podman](https://talira.ai/catalog/podman-dsk3mjnr.md)
- Works with [CRI-O](https://talira.ai/catalog/cri-o-r47bfc1z.md)

## Alternatives

- [youki](https://talira.ai/catalog/youki-mcw3hdef.md): A container runtime written in Rust
- [runc](https://talira.ai/catalog/runc-mh439p69.md): CLI tool for spawning and running containers according to the OCI specification
- [CRI-O](https://talira.ai/catalog/cri-o-r47bfc1z.md): Lightweight Container Runtime for Kubernetes
- [Kata Containers](https://talira.ai/catalog/kata-containers-kng7j1zw.md): The speed of containers, the security of VMs
- [gVisor](https://talira.ai/catalog/gvisor-5eztscjg.md): Application Kernel for Containers

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://github.com/containers/crun/blob/main/THREAT_MODEL.md (checked 20 Nov 2026)
[^4]: https://github.com/containers/crun/blob/main/crun.1.md (checked 20 Nov 2026)
[^5]: https://github.com/containers/crun/blob/main/COPYING (checked 20 Nov 2026)
[^6]: https://github.com/containers/crun/blob/main/COPYING.libcrun (checked 20 Nov 2026)
[^7]: https://github.com/containers/crun/blob/main/README.md (checked 20 Nov 2026)
[^8]: https://www.redhat.com/en/about/press-releases/ibm-closes-landmark-acquisition-red-hat-34-billion-defines-open-hybrid-cloud-future (checked 20 Nov 2026)
