Hacker News new | past | comments | ask | show | jobs | submit login

Docker Desktop (ie Docker on Mac) absolutely sets up a VM.



Correct, on macs it spawns a (usually aarch64) vm using apples hypervisor framework api (hw virt) and runs docker daemon inside of it. Then it’s what I described above - just an process running arm instructions. If you’re using qemu binfmt_misc runner which uses “user mode emulation” not to be confused with system emulation which does full blown hw emulation. So it’s aready doing similar things to rosetta 2


Yes qemu and Rosetta perform the same basic role here (bintfmt handler for x86 bins), but Rosetta should perform significantly better (otherwise there would be virtually no reason at all to build this).


> Docker Desktop (ie Docker on Mac) absolutely sets up a VM.

Docker runs inside the VM, not the other way around.


Something needs to set up the VM that Docker runs in. Docker Desktop is that something. The GUI even lets you tweak the VM resources. I suppose you could do it all on your own, but most macOS users probably just install Docker Desktop and let it handle the VM.


Docker Desktop has pretty bad performance. Vagrant seems to be the way.


Do you know if these changes will allow Vagrant to configure VMs with Intel operating systems to run on an M1?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: