On Thu, Sep 04, 2014 at 07:24:36AM +0200, Magnus Therning wrote:
As always complex doesn't automatically translate to complicated ;)
In this particular case I had no issues with following the instructions I found on docker. While when spending the same amount of time on getting lxc to work I get stuck almost immediately:
% lxc-create -n test -t archlinux lxc_container: No mapping for container root lxc_container: Error chowning /home/magnus/.local/share/lxc/test/rootfs to container root lxc_container: Error creating backing store type (none) for test lxc_container: Error creating container test
And quick googling didn't turn up anything useful. Reading through the Linux Containers page  didn't help either.
No, this will not work because lxc-create needs root privileges for a variety of things. You'll need to have user_ns enabled in the kernel to accomplish this as a normal user. Note, that docker is not much better, it's just uses a privileged daemon to do things.
IIRC, currently running lxc-* as a normal user will work out-of-the-box only on an Ubuntu 14.04 host.