[Lxc-users] Hard links, code map sharing
Daniel Farina
drfarina at acm.org
Mon Feb 21 09:54:26 UTC 2011
On Mon, Feb 21, 2011 at 1:52 AM, Daniel Lezcano <daniel.lezcano at free.fr> wrote:
> On 02/21/2011 10:42 AM, Daniel Farina wrote:
> Yep, as Serge mentioned, you can read-only bind mount in your container's
> rootfs the system binary/library directories.
>
> eg.
>
> ...
> lxc.rootfs = $rootfs
> lxc.mount.entry=/lib $rootfs/lib none ro,bind 0 0
> lxc.mount.entry=/bin $rootfs/bin none ro,bind 0 0
> lxc.mount.entry=/usr /$rootfs/usr none ro,bind 0 0
> lxc.mount.entry=/sbin $rootfs/sbin none ro,bind 0 0
> ...
>
> There is no variable substitution here, it is an example. You should replace
> $rootfs by an absolute path.
Most excellent; thank you both for your help. Hopefully other people
find confirmation of this detail in the archives :)
--
fdr
More information about the lxc-users
mailing list