[lxc-users] Creating a container as non root

Kevin Wilson wkevils at gmail.com
Thu Jan 9 06:08:59 UTC 2014


Hello,
I believe that creating a container as non root user should be straight-forward.

I added a user named "test" and I am trying to create a container (see
below the sequence). I am running latest lxc git
(built from source, as root)  on Fedora 20.

useradd test
su test

lxc-create -t busybox -n busyboxTest
I get:

You lack access to /home/test/.local/share/lxc/
I ran;
mkdir -p /home/test/.local/share/lxc/

Then again:
lxc-create -t busybox -n busyboxTest
lxc-create: Permission denied - failed to create directory '/run/user/0/lock/'

failed to create lock
System error loading container

What should I do ?

Regards,
Kevin


More information about the lxc-users mailing list