[lxc-users] LXC unpreviliged problem with aufs mounted on nfs
homalu at 163.com
homalu at 163.com
Sat Mar 21 00:51:03 UTC 2020
Hi, All,
I am working on my project that needs to use aufs as a backend for the LXC.
If I set the local branch as the first rw branch for aufs, as:
mount -t aufs -o br=/home/{lxcname}/data=rw:/home/base/rootfs=ro none /var/lib/lxc/containers/{lxcname}/rootfs
the LXC works well in unpreviliged mode, I can modify any file in the container's bash as a root user.
Buf if I set the nfs branch as the first rw branch, as:
mount -t aufs -o br=/nfsmountpoint=rw:/home/base/rootfs=ro none /var/lib/lxc/containers/{lxcname}/rootfs
the LXC can start up in unpreviliged mode, but I can't modify the files which's ownner is not root. It seems not working in unpreviliged mode.
My nfs version is nfsv4, and LXC is the latest version.
Please help me , thanks very much.
Best Regards.
Michael Mao
homalu at 163.com
From: lxc-users-request
Date: 2020-03-21 07:26
To: lxc-users
Subject: lxc-users Digest, Vol 319, Issue 5
Send lxc-users mailing list submissions to
lxc-users at lists.linuxcontainers.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.linuxcontainers.org/listinfo/lxc-users
or, via email, send a message with subject or body 'help' to
lxc-users-request at lists.linuxcontainers.org
You can reach the person managing the list at
lxc-users-owner at lists.linuxcontainers.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of lxc-users digest..."
Today's Topics:
1. Quick Question (Ray Jender)
2. Re: Quick Question (Tomasz Chmielewski)
3. Re: Quick Question (Ray Jender)
4. Re: Quick Question (Narcis Garcia)
5. Re: Quick Question (Saint Michael)
6. Re: Updating to LXC 3.2.1 fails (Andrey Repin)
7. Re: Updating to LXC 3.2.1 fails (Saint Michael)
_______________________________________________
lxc-users mailing list
lxc-users at lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20200321/f7756900/attachment.htm>
More information about the lxc-users
mailing list