<div dir="ltr">Resurrecting this thread.<div><br></div><div>I've tried again on a new machine running Ubuntu 13.10 with lxc 1.0.0~alpha1 and I am still getting the same problem.</div><div><br></div><div>I can remount /proc rw, but not ro.  I've disabled apparmor (via <a href="https://gist.github.com/gionn/7585324" target="_blank">https://gist.github.com/gionn/7585324</a>) and get no errors.</div>


<div><br></div><div>in lxc.conf:</div><div><div>lxc.mount.auto = proc</div></div><div><br></div><div>I have the same issue if I use:</div><div>lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0<br></div><div><br></div>


<div><br></div><div>Are you guys actually able to mount-bind proc ro inside your containers?</div><div><br></div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Jan 16, 2014 at 5:55 PM, Qiang Huang <span dir="ltr"><<a href="mailto:h.huangqiang@huawei.com" target="_blank">h.huangqiang@huawei.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi Aaron,<br>
<div><div><br>
On 2014/1/17 9:33, Aaron Staley wrote:<br>
> I'm trying to run an application that works fine on my host inside a container.<br>
><br>
> The application executes:<br>
> mount -t proc -o ro proc /mnt/remount_point<br>
> But this command errors:<br>
> mount: cannot mount block device proc read-only<br>
><br>
> mounting read-write (mount -t proc proc /mnt/remount_point) does work however.<br>
><br>
> I'd rather not modify the application.  Is there some LXC option/other issue blocking a RO mount of proc?<br>
><br>
<br>
</div></div>RO mount of proc should have worked, there must be something else<br>
wrong, maybe like Stéphane said.<br>
<br>
If you are looking for some LXC options,<br>
lxc.mount.auto = sys proc<br>
may be what you want.<br>
<div><div><br>
> Thanks,<br>
> Aaron<br>
><br>
><br>
> _______________________________________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
><br>
<br>
<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
</div></div></blockquote></div><br></div></div>