4 ms·
Docker is built on specific features of the Linux kernel. From Wikipedia https://en.wikipedia.org/wiki/Docker_(software) https://en.wikipedia.org/wiki/Docker_(s
by tarsinge 5y ago
Docker is built on specific features of the Linux kernel. From Wikipedia https://en.wikipedia.org/wiki/Docker_(software) https://en.wikipedia.org/wiki/Docker_(software):
> When running on Linux, Docker uses the resource isolation features of the Linux kernel (such as cgroups and kernel namespaces) and a union-capable file system (such as OverlayFS)to allow containers to run within a single Linux instance, avoiding the overhead of starting and maintaining virtual machines.[12] Docker on macOS uses a Linux virtual machine to run the containers.
- pengaru 5y agoAnd MacOS is built on Darwin; a hodgepodge of FreeBSD atop Mach and years of iterating on that. Point being, Apple has zero barriers to making Mach look like an existing interface to userspace a la FreeBSD. They can take advantage of Linux's stable ABI and add the necessary Linux interfaces for native Linux containers support, and it could be performant. The whole x86 on ARM problem seems like the more difficult one to make performant from where I'm sitting, but there's no shortage of claims to the contrary saying x86 emulation on the M1 is fast enough even for demanding video games.