[Lxc-users] bind (re)mount possible?
Stéphane Graber
stgraber at ubuntu.com
Fri Oct 25 14:38:47 UTC 2013
On Fri, Oct 25, 2013 at 12:35:04AM -0500, Serge Hallyn wrote:
> Quoting Ulli Horlacher (framstag at rus.uni-stuttgart.de):
> > On Thu 2013-10-24 (15:11), Serge Hallyn wrote:
> >
> > > If your kernel is new enough (check whether /proc/self/ns/mnt exists)
> > > you could lxc-attach into the container with the -e flag to keep
> > > elevated privileges, and do the remount.
> >
> > Ubuntu 12.04:
> >
> > root at vms3:~# l /proc/self/ns/mnt
> > l: /proc/self/ns/mnt - No such file or directory
> >
> > root at vms3:~# uname -a
> > Linux vms3 3.2.0-55-generic #85-Ubuntu SMP Wed Oct 2 12:29:27 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
> >
> > What is "new enough"?
>= 3.8
> >
> > So, from the host system, a remount is not possible?
>
> Correct. The container is in a private mount namespace,
> and you cannot enter it. You can view it somewhat through
> /proc/$pid/root, but you can't mount under that because
> you'd be trying to mix two vfsmounts belonging to different
> mount namespaces.
>
> -serge
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20131025/58ec4b80/attachment.pgp>
More information about the lxc-users
mailing list