3 ms·
Not sure whether you know something I don't but I'm not aware of any VM when I'm running Docker containers directly on my Mac?
by AlexSW 4y ago
Not sure whether you know something I don't but I'm not aware of any VM when I'm running Docker containers directly on my Mac?
- dpatterbee 4y agoYou might not be aware, but docker desktop is running a linux VM under the hood.
- idontwantthis 4y agoDocker machine uses qemu to make a Linux VM to run docker containers in.
- silviot 4y agoAnd then does magic when you want to expose a volume from your macos host to your docker container. And that magic can slow down things. They improved things recently though [1] [1] https://www.docker.com/blog/speed-boost-achievement-unlocked-on-docker-desktop-4-6-for-mac/ https://www.docker.com/blog/speed-boost-achievement-unlocked...
- smackeyacky 4y agoOSX is a distant third for a developer who is deploying docker containers. Microsoft and WSL2 are trying, but nothing beats a linux distribution for that.
- deadbunny 4y agoIsn't WSL2 just a VM as well?
- smackeyacky 4y agoYes, but the integration with the host OS on windows is better, especially if you are using vscode. Not as good as native linux though.
- School-Cotton 4y agoTry running a docker container whose executable is called “foo” in macOS. Then go to activity monitor and try to find “foo”, or try to attach to it from the host with lldb, or try to profile it with the Xcode profiling tools. You can’t. This is because it’s running in a VM, not natively on the host. On Linux you can do any of those things from the host directly, without needing to shell into the container. I actually found this so incredibly frustrating when I started working at a job that uses docker that I argued in vain against using docker at all, and then when that failed, I switched to doing all my coding and other technical work on a Linux VM and only using macOS for email.