#container #linux #technology #namespaces #process #closures #wrap

nswrap

A rust library that provide program interface of Linux container technology

1 个不稳定版本

0.1.0 2023年8月3日

#12 in #technology

MPL-2.0 许可证

32KB
624 行代码(不含注释)

NsWrap

A rust library that provide program interface of Linux container technology.

这些技术包括系统调用,如 namespaces(7)clone(2)。它可以作为一个低级库来配置和执行 Linux 容器内部的程序和闭包。

The Wrap follows a similar builder pattern to std::process::Command. In addition, Wrap contains methods to configure linux namespaces, chroots, mount points, and more part specific to linux.


许可证

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


lib.rs:

This crate is aiming at providing an friendly interface of linux container technologies. These technologies include system calls like namespaces(7) and clone(2). It can be use as a low-level library to configure and execute program and closure inside linux containers.

The Wrap follows a similar builder pattern to std::process::Command. In addition, Wrap contains methods to configure linux namespaces, chroots, mount points, and more part specific to linux.

依赖

~10–19MB
~333K SLoC