A container runtime written in C that implements the OCI runtime specification. Ships as a command-line tool and can be built as libcrun for in-process use.
Overview
Crun is an OCI container runtime implemented in C. It conforms to the OCI Container Runtime specifications and is distributed as release artifacts with signatures verified against a project keyring.
The authors position C as a fit for a low-level runtime compared with Go-based alternatives such as runc, and note that crun can be used as a library to manage OCI containers without a separate helper process. Published benchmarks on the project compare elapsed time and memory use when running many short-lived containers.
Installation paths include building from source with distribution-specific dependencies, optional shared libraries via configure flags, statically linked binaries through Nix, and automation via an Ansible role. Lua bindings are documented for embedding.
Official releases and user documentation are published alongside the source repository for operators and integrators who need a lightweight OCI runtime on Linux.
Key features
- OCI runtime specification compliance
- Command-line container execution
- Optional libcrun shared library
- Signed release artifacts
- Static binary builds via Nix
- Lua bindings
- Low memory footprint
- Compared timing versus runc in docs
Use cases
- Run OCI containers on Linux
- Embed container management in C programs
- Replace runc where C runtime is preferred
- IoT or constrained hosts needing low overhead
- Automated install with Ansible role