[lxc-users] Why can proc not be remounted read-only inside a container?

Aaron Staley astaley at berkeley.edu
Fri Jan 17 01:33:06 UTC 2014


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?

Thanks,
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140116/28c497ae/attachment-0001.html>


More information about the lxc-users mailing list