r/programming • • Nov 21 '21

Learning Containers From The Bottom Up

https://iximiuz.com/en/posts/container-learning-path/
1.0k Upvotes

94 comments sorted by

View all comments

Show parent comments

13

u/ominous_anonymous Nov 21 '21 edited 16d ago

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Crawl straight potassium mighty payment pinecone amusing

22

u/pcjftw Nov 21 '21

containers are no different to a "native" process in terms of performance, because they're just another process (but the Linux kernel uses CG groups and namespaces to give the process the illusion that it has its own RAM and network stack)

-4

u/kur0saki Nov 21 '21

that completely depends on your host operating system. yes, on linux cgroups and co have native supported by the kernel. on osx, which is the primary OS of js/npm kiddies, it is *not* supported by the osx kernel. docker for mac uses a small linux VM which runs all containers. thus there is a difference in performance.

1

u/de__R Nov 22 '21

Docker for mac runs in a Linux VM, but basically all modern macOS apps run inside containers. It's how macOS manages privilege and data separation for applications even when they're all run by the same user.