4 ms·
M1 Docker still needs a Linux VM, Virtualization Framework is just a different way of doing that. I'm not aware of any VM that can share memory with the host,
by luhn 6y ago
M1 Docker still needs a Linux VM, Virtualization Framework is just a different way of doing that. I'm not aware of any VM that can share memory with the host, but maybe Apple has some black magic up their sleeve.
- ogre_codes 6y agoYeah, fundamentally Docker is Linux on Linux. If you are running Linux on MacOS, it's not Docker, it's a VM. So Docker installs are Linux Docker Image -> Linux VM -> MacOS Virtualization Framework. For that reason alone, I suspect Linux will always be the best host system for Docker images.
- TimTheTinker 6y ago> I suspect Linux will always be the best host system for Docker images. It seems that for more than 1-2 containers, running Docker inside a Linux VM on macOS is better resource-wise.
- pjmlp 6y agoOn Windows Docker uses Windows containers for Windows images and WSL for Linux images, so whatever is the best host depends on the images.
- saagarjha 6y agoWSL is a Linux VM, though.
- daragrin 6y agoSeems like Apple's Virtualization Framework supports some sort of memory ballooning mechanism (https://developer.apple.com/documentation/virtualization/memory https://developer.apple.com/documentation/virtualization/mem...), which could hopefully enables in the near future dynamic memory support like Docker Desktop on WSL 2 is able to do (if it's not already the case, I haven't tried the M1 preview).