talira

A container runtime written in Rust

open sourceApache-2.0self-hostablefree

youki is an implementation of the OCI runtime specification in Rust, a drop-in low-level runtime like runc that Docker and other engines can call to create containers. Its authors chose Rust for memory safety and for easier handling of the system calls a runtime needs, and its README benchmark has it creating and deleting a container in about half runc's time (crun is faster still). It supports rootless containers, cgroup v1, v2 and systemd through its libcgroups crate, and can run WebAssembly workloads when built with WasmEdge, Wasmer or Wasmtime. Its libcontainer crate is used by other projects, including the runwasi containerd shim; it's a CNCF sandbox project under Apache-2.0.

Problems it solves

  • a memory-safe replacement for runc as Docker's low-level container runtime
  • create and run containers from an OCI bundle with a runtime written in Rust
  • build my own container engine in Rust using a library that creates and manages containers
  • run WebAssembly workloads as containers with WasmEdge, Wasmer or Wasmtime
  • run rootless containers as a normal user from an OCI config
  • a container runtime that starts containers faster and uses less memory than runc
  • manage cgroups v1 and v2 from Rust code
  • parse OCI runtime CLI arguments the same way runc does in my own Rust runtime
  • a static musl binary of a container runtime that needs no extra libraries

Features

  • implements the OCI runtime specification, like runc
  • rootless mode; youki spec --rootless writes a rootless config
  • cgroup v1, hybrid and v2 managers plus systemd support in libcgroups
  • WebAssembly support built in with the wasm-wasmedge, wasm-wasmer or wasm-wasmtime feature
  • libcontainer crate for creating and managing containers, with AppArmor, capabilities, namespaces, rootfs and seccomp modules
  • liboci-cli crate for runc-compatible command-line parsing
  • static musl release binaries
  • works as a Docker runtime through daemon.json
  • passes containerd's end-to-end tests, per its README

Limitations

  • Doesn't run on macOS or Windows: youki only supports Linux, so other platforms need a Linux VM such as its Vagrant setup12
  • Doesn't work without systemd: youki needs a systemd-based Linux system for now1

Capabilities

Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what youki does.

  1. runc CLI tool for spawning and running containers according to the OCI specification
  2. crun A fast and lightweight fully featured OCI runtime and C library for running containers
  3. CRI-O Lightweight Container Runtime for Kubernetes
  4. gVisor Application Kernel for Containers
  5. Kata Containers The speed of containers, the security of VMs

Compare youki with the top 3