Hacker News new | ask | show | jobs
by ressetera 2241 days ago
I don't have a clear image of how Docker behaves on Mac, but I had wasted a whole day trying to make it work on Windows WSL.

I'd suggest you virtualize a normal Linux host on your machine (under VMware for example) and run Docker there.

2 comments

WSL2 makes this super easy. Once you have a distro installed, you just go into Docker Desktop's settings, click "use WSL2 backend" and it does it. Then you don't have to have Docker's slow boot2docker VM eating RAM all the time in the background. It's great!

The reason it doesn't work on WSL1 is because of the whole Linux kernel not being there, the features required for Docker to work don't exist. But since WSL2 is a (rather performant for certain tasks) VM, it works fine.

I'm almost certain you already read this guide [1], so I ask: where did it fail you? It definitely wasn't straightforward, but I managed to get it working fine in a couple of hours (Windows 10 1903, WSL 1, Ubuntu 16.04).

[1] https://nickjanetakis.com/blog/setting-up-docker-for-windows...

If I'm not mistaken, I hadn't many issues installing docker on WSL.

The problems started when I docker-compose up'd a pretty basic nginx-php-mariadb stack.