[lxc-users] unprivileged containers lxc.mount.entry only nobody:nogroup
Serge Hallyn
serge.hallyn at ubuntu.com
Mon Apr 28 13:27:53 UTC 2014
Quoting Giuseppe Fierro (giuseppe at fierro.org):
> Hi,
> I'm playing with LXC Container in unprivileged mode.
>
> When I try to bind mount a directory inside a container with:
>
> lxc.mount.entry=/home/user/test-lxc srv/test-01 none
> defaults,bind,create=dir 0 0
>
> /srv/test-01 inside the container is mounted as nobody:nogroup so I'm
> not be able to write in it.
>
> So my question is am I doing something wrong or is this the normal behaviour?
That's the normal behavior, since the owner of those files is not mapped
into the container. You could map your host uid into the container, but
then of course the container uid 'owns' those files.
-serge
More information about the lxc-users
mailing list