6 ms·
That's not the case - there's only one virtual machine shared by all containers.
by friism 10y ago
That's not the case - there's only one virtual machine shared by all containers.
- smegel 10y agoOh...that's interesting. That would even be useful on Linux to enable greater resource separation between processes...say being able to lock all Docker processes down to 1-2 cores on a machine and with a hard memory limit they can't exceed.
- pritambaral 10y agoThat's already possible with cgroups. Adding a virtualization layer even on Linux would be wasteful, since Docker runs natively on Linux anyway.
- zenlikethat 10y agoWhat you mention is a major reason why Linux containers were invented, and is already possible with Docker today. Take a look at the '--mem-limit' or '--cpu-shares' flags for 'docker run', for instance.