[lxc-users] How to mount directories from $HOME into an unprivileged container?

Serge Hallyn serge.hallyn at ubuntu.com
Mon Aug 17 17:24:21 UTC 2015


Quoting Karma Kolabor (collaborista at gmail.com):
> Hi Serge,
> 
> thanks for the quick reply! the "hole" word made it click! I added
> this to the config, now it seems to work:
> 
> lxc.id_map = u 0 100000 1000
> lxc.id_map = g 0 100000 1000
> lxc.id_map = u 1000 1000 1
> lxc.id_map = g 1000 1000 1
> lxc.id_map = u 1001 101001 64535
> lxc.id_map = g 1001 101001 64535
> 
> 
> If we assume that a 'hole' is basically 'nothing' or 'empty space',
> then I can truly say now:
> "so much trouble for nothing!"  :)
> 
> Thanks again and have a nice day!

If someone wanted to write a small fn to verify uid maps so we can give
more helpful failure messages before even trying to start the container, I
think that would be a huge help.


More information about the lxc-users mailing list