Direct Haskell bindings to LXC (Linux containers) C API.

Latest on Hackage:0.2.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed by Nickolay Kudasov


Hackage package Build Status

Direct Haskell bindings to LXC (Linux containers) C API.

The package provides direct bindings to LXC C API through @bindings-dsl@.

For high-level Haskell LXC API see lxc package.


Before installation make sure you have LXC installed on your system with header files and static library.

On Ubuntu 14.04 LTS (Trusty Tahr):

$ sudo apt-get install lxc-dev

On previous Ubuntu versions (including 12.04 LTS Precise Pangolin) standard repositories do not contain liblxc1 package. You might want to use ppa:ubuntu-lxc/stable repository instead:

$ sudo apt-get install software-properties-common python-software-properties
$ sudo add-apt-repository ppa:ubuntu-lxc/stable
$ sudo apt-get update
$ sudo apt-get install lxc-dev


Get the latest stable version from Hackage:

$ cabal install bindings-lxc

or clone this repository:

$ git clone
$ cd bindings-lxc
$ cabal install


Haddock documentation is available at


Contributions and bug reports are welcome!

Please feel free to contact me via GitHub or on the #haskell IRC channel on

-Nickolay Kudasov



  • Relax upper bound for base

  • Improve documentation


  • Fix types in Bindings.LXC.Container
Depends on 2 packages:
Used by 1 package:
comments powered byDisqus