#rate-limit #binary #runc #container #kernel #consuming #process #memory #cgroup #cpu

rust-runc

A crate for consuming the runc binary in your Rust applications

2 releases

0.1.1 Jan 30, 2020
0.1.0 Nov 6, 2019

#4 in #runc

31 downloads per month

Apache-2.0

99KB
2K SLoC

rust-runc

A crate for consuming the runc binary in your Rust applications. Fully asynchronous using Futures, and Tokio.

Based on the reference go-runc implementation.

Usage

Please refer to the crate documentation.

Limitations

Checkpoint Support

Checkpoints rely on the external, checkpoint/restore in userspace project. The criu tool relies on a variety of kernel features and is not portable.

Due to the difficulties in shipping a criu binary for testing, and it's non portable nature, checkpoint support is currently out of scope for rust-runc.

Preserving File Descriptors

Runc includes the ability to inherit file descriptors from a parent process. Rust's standard library does not include support for exec with additional file descriptors.

Therefore there is currently no support for preserving file descriptors.


lib.rs:

A crate for consuming the runc binary in your Rust applications.

Dependencies

~8.5MB
~150K SLoC