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

On windows I just use WSL2 with docker installed through the Linux distribution (Ubuntu in my case). This way I get docker on my windows Laptop without the annoying docker desktop



I wanted to build a Windows container image but I really did not want to install Docker Desktop. After some digging around I found my way to the Docker server / client binaries for Windows page that allowed me to do this: https://docs.docker.com/engine/install/binaries/#install-ser...


Thanks, that's good to keep in mind if I ever need to run docker engine on windows!


Did you follow a particular guide for how to do that?

I remember trying a while back, when WSL2 was first released, and I couldn't get it to work; IIRC I couldn't get stuff running in Windows to communicate with stuff running in containers in WSL2, and also vice-versa.


On WSL2, you just install Docker the same way as you would do on Linux. `sudo apt install docker.io` (from Debian/Ubuntu repo) or `curl https://get.docker.com | sh` (from Docker Inc). If you are using different WSL distribution, the standard way to install docker should work just fine. (e.g. `sudo pacman -S docker` works as expected on ArchWSL)


I agree. I do remember that in earlier versions WSL2 this approach didn't work, but currently it's the same as installing docker on a regular Linux distribution


Nice! Are there any limitations to be aware of?




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

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

Search: