[Lxc-users] Hard links, code map sharing

Daniel Lezcano daniel.lezcano at free.fr
Mon Feb 21 10:23:10 UTC 2011


On 02/21/2011 10:54 AM, Daniel Farina wrote:
> 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 :)
Yeah ! One day, I will write a good documentation for lxc :)




More information about the lxc-users mailing list