[lxc-users] Dynamically bind-mounting read-only into container

Tobias Olausson tobias.olausson at pelagicore.com
Mon Jul 4 10:41:10 UTC 2016


I'm working on a software using LXC where we want to be able to, while a
container is running, bind mount directories read-only into it. I guess
this means I can't use the lxc.mount entry, since that is read when
creating/starting the container, not while it is running.

I posted on StackOverflow before thinking about asking on this mailing list
[1]. Basically, unless I re-mount _inside_ the container, the mount shows
up as read-write inside it, even though it is read-only in the host.



Tobias Olausson
M.Sc C.S.
Software Engineer

PELAGICORE | Experience Change
Ekelundsgatan 4, 6tr, SE-411 18 Gothenburg, Sweden
Mobile: +46(0)735-873444
IRC: wto @ FreeNode

Registered Office Gothenburg, Sweden
Registration No. 556780-4199
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160704/54310c1d/attachment.html>

More information about the lxc-users mailing list