[lxc-users] Why can proc not be remounted read-only inside a container?
Qiang Huang
h.huangqiang at huawei.com
Fri Jan 17 01:55:59 UTC 2014
Hi Aaron,
On 2014/1/17 9:33, Aaron Staley wrote:
> I'm trying to run an application that works fine on my host inside a container.
>
> The application executes:
> mount -t proc -o ro proc /mnt/remount_point
> But this command errors:
> mount: cannot mount block device proc read-only
>
> mounting read-write (mount -t proc proc /mnt/remount_point) does work however.
>
> I'd rather not modify the application. Is there some LXC option/other issue blocking a RO mount of proc?
>
RO mount of proc should have worked, there must be something else
wrong, maybe like Stéphane said.
If you are looking for some LXC options,
lxc.mount.auto = sys proc
may be what you want.
> Thanks,
> Aaron
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
More information about the lxc-users
mailing list