LXC: read-only mounts

alchemycs

Renowned Member
Dec 6, 2011
34
8
73
Seattle, WA
alchemycs.com
Hi!
I'm poking at new 4.0 release, and I am trying to get extra mounts mounted as read-only, but it doesn't appear to work.
This is what I have:

lxc.mount.entry: /mnt/test test none bind,ro,create=dir 0 0

which works great, except it mounts it as read-write in the container:

# mount | grep dm-0
/dev/dm-0 on /test type xfs (rw,relatime,attr2,inode64,noquota)

Any suggestions would be greatly appreciated!