2 ms·
MacOS is based on a Mach kernel with a BSD userland. It’s unixy but containers are a Linux thing based on namespaces and cgroups among other things all of which
by gigatexal 5y ago
MacOS is based on a Mach kernel with a BSD userland. It’s unixy but containers are a Linux thing based on namespaces and cgroups among other things all of which are Linux kernel primitives.
BSD has jails which are similar but different.
So the answer is MacOS doesn’t offer containers like you know them because it’s not linux hence Docker for Mac spins up a VM.
- AltruisticGapHN 5y agoOk so you mean it's something that's lacking at a much more lower level of the OS?
- metaltyphoon 5y agoYes. Windows offers Linux containers, via thin Hyper-V layer and Windows containers can be hosted in 2 min different ways.