Shared library in containers : <p>For two processes A and B, the both use the library libc.so, libc.so is loaded into memory only once. This is a normal situation when A and B both run on the same host and the same rootfs.</p>

<p>When it comes to container, if A and B are running in different containers, are A and B sharing same memory area?</p>

<p>for example</p>

<p>imageA</p>

<p>--libc.so</p>

<p>--programA</p>

<p>imageB</p>

<p>--libc.so</p>

<p>--programB</p>

<p>we use <strong>chroot</strong> to run A and B in different rootfs. The two libc.so are same. Will libc.so be loaded into memory twice?</p>
