https://github.com/sanpii/lxc-rs
Linux Containers API for rustaceans
https://github.com/sanpii/lxc-rs
lxc rust
Last synced: 6 months ago
JSON representation
Linux Containers API for rustaceans
- Host: GitHub
- URL: https://github.com/sanpii/lxc-rs
- Owner: sanpii
- License: mit
- Created: 2018-05-22T17:16:49.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-02-27T17:12:09.000Z (7 months ago)
- Last Synced: 2025-04-10T03:57:15.944Z (6 months ago)
- Topics: lxc, rust
- Language: Rust
- Homepage:
- Size: 216 KB
- Stars: 20
- Watchers: 3
- Forks: 5
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# LXC
[](https://gitlab.com/sanpi/lxc-rs/commits/main)
Crate to play with [LXC container](https://linuxcontainers.org/lxc/) in rust.
## Usage
Add it to your dependencies:
```
$ cargo add lxc
```You also need the lxc C development files and clang:
```
# Archlinux
$ sudo pacman -S lxc clang llvm# Debian/Ubuntu
$ sudo apt install lxc-dev clang llvm# Fedora
$ sudo dnf install lxc-devel clang llvm
```See [demo.rs](examples/demo.rs) for a complete example.