An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# LXC

[![Build Status](https://gitlab.com/sanpi/lxc-rs/badges/main/pipeline.svg)](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.