3 ms·
It doesn't
by evnix 3y ago
It doesn't
- troupo 3y agoOfficial docker image for node is built from Alpine or Debian [1] Forgive me if I don't believe that running a full OS on a host OS to run a single node command doesn't amount to running a VM. [1] https://github.com/nodejs/docker-node/tree/main/20 https://github.com/nodejs/docker-node/tree/main/20
- bombela 3y agoIt doesn't run a full OS. Merely the nodejs binary with all it's dependencies. You can think of Docker containers as a way to package an application dependencies, ending at the (Linux) kernel API/ABI.
- troupo 3y ago"Merely". As in: "a completely different node js binary in its own environment, its own networking, its own file system overlay etc."
- forty 3y agoI cannot say if your are wrong because of ignorance or bad faith, but in case it's the former: running in a container is not the same as running in a VM, no rewording of the definition of either will make it the same or even equivalent. The difference have some impact on performance and security among other things, I recommend that you take the time to understand the difference if it's a topic of interest for you.