The official repository for this project has been moved to LXC organization.
This repository is kept here for historical purposes only.
This package implements Go bindings for the LXC C API.
This package requires LXC 0.9 and Go 1.x.
It has been tested on
- Ubuntu 12.10 (quantal) by manually installing LXC 0.9
- Ubuntu 13.04 (raring) by using distribution provided packages
- Ubuntu 13.10 (saucy) by using distribution provided packages
The typical go get github.com/caglar10ur/lxc
will install LXC Go Bindings.
Documentation can be found at GoDoc
See the examples directory for some.
Note that since LXC 0.9 does not have full user namespaces support, any code using the LXC API needs to run as root.