[Lxc-users] Rootfs as rw overlay on top of ro directory

Serge Hallyn serge.hallyn at ubuntu.com
Tue Jun 11 15:11:47 UTC 2013


This is really cool, first off.  I'd like to extend the built-in
overlayfs backing store support a bit, but there will also be
room for more powerful setups using mount hooks.  I'd like to
add your mount hook into the set of listed examples, if you don't
mind.

The pre-start and post-stop routines run in the monitor's namespace.
The pre-mount routine runs in the container's namespace.  You
might try moving the pre-mount stuff all into pre-start instead, and
umounting them (-l) in the post-stop.  My guess is that the aufs is not
being umounted for one reason or another.

You also might try overlayfs, which might correctly get auto-umounted.

-serge




More information about the lxc-users mailing list