Not what you asked for, but have you seen: https://github.com/justincormack/ljsyscall/blob/master/examples/lxc.lua It's not hard to do most of what LXC does by just using syscalls.