Hacker News new | ask | show | jobs
by ahepp 809 days ago
Are you saying that two containers running the same image will share their common libraries in the host kernel's memory?

Based on my understanding of cgroups, that seems unintuitive to me. Are you certain that's the case? I may try testing this out when I get a chance.

1 comments

Yes. And even containers running different images will share the libraries so long as they come from shared layers.
I guess thinking about it more, that does check out. The kernel loads shared libraries, and containers share the kernel.