Skip to content

quadrifoglio/lxc-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lxc-rs

rust bindings to liblxc.

work in progress, definitely not ready for any kind of use other than experimental.

example

extern crate lxc;

use lxc::Container;

fn main() {
	println!("using lxc version {}", lxc::version());

	let lxcpath = "/var/lib/lxc";
	let containers = Container::list(lxcpath).unwrap();

	for c in containers {
		println!("{} - {}", c.name, c.state());
	}	
}

see the lxc/examples directory for more usage examples.

note

the original liblxc library needs to be available on the system to use this crate.

About

Rust bindings to liblxc (linux containers)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published