Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support configurations without root mapping #2066
On Wed, Jan 03, 2018 at 03:26:56AM +0000, Felix Abecassis wrote: It will still require a root mapping for `lxc-create`, right?
May I ask which configuration you used for the container? I was not able to make it work, will dig more into it tomorrow.
To run the container itself I just added: lxc.idmap = u 1000 1000 1 lxc.idmap = g 1000 1000 1 lxc.init.uid = 1000 lxc.init.gid = 1000 lxc.hook.mount = To the container's config file. I suspect that you didn't use the "lxc.hook.mount=" option. This is required to make sure that the lxcfs hook is not run. The lxcfs hook uses mount with the --types option which is not allowed unless you're root in the respective user namespace. Otherwise it should work. Does that work for you?