4 ms·
I didn't know that macOS users don't run Docker natively! On Windows, it's native: https://docs.docker.com/docker-for-windows/ https://docs.docker.com/docker-f
by fortran77 7y ago
I didn't know that macOS users don't run Docker natively! On Windows, it's native:
https://docs.docker.com/docker-for-windows/ https://docs.docker.com/docker-for-windows/
- mtzet 7y agoDocker desktop runs a Hyper-V VM. Prior to that, Docker used a Virtualbox VM on Windows. The current plan seems to be to integrate with WSL2 once that ships [1]. [1] https://engineering.docker.com/2019/06/docker-hearts-wsl-2/ https://engineering.docker.com/2019/06/docker-hearts-wsl-2/
- tsimionescu 7y agoIn practice, the vast majority of docker containers are Linux containers, so most uses of docker for windows need a Linux kernel to do anything useful. As such, the 'native' docker for windows you linked is actually managing a Linux VM (HyperV or VBox) fot you; the docker server runs on that VM, and the native docker windows binary simply connects to that server. They also do a lot of tricks to connect networking and file shares with that VM. The file shares part is almost completely non-working in my experience, with scary comments in the bugs like 'doesn't work if your windows password contains certain characters' (it sets up CIFS shares between the Linux VM and some parts of your Windows file system). So, not sure what docker for Mac looks like, but Docker For Windows is only 'native' in a very hand-wavy sort of way, unless (maybe) if you're running Windows docker containers.
- merb 7y agodocker for mac uses xhyve/hyperkit and has a really really slow i/o.
- pritambaral 7y agoThat cannot run Linux containers, only Windows containers, no?
- rleigh 7y agoYou can switch between one or the other. Oddly, it can't run both at the same time.
- fortran77 7y agoYes. If you're running Windows containers you can be "native" docker. However, we use VMs managed with Salt for our Centos VMs. I never saw the need for Docker. Maybe if I did "web" stuff.