DEV Community

loading...

Discussion on: WSL 2 and Docker

Collapse
kneecola profile image
knee-cola

Why bother with Docker Desktop when you can install Docker directly in WSL2?

I've tried Docker Desktop and found that it's simpler to install and run Docker inside WSL2 (Ubuntu).

Also you get an environment which closely resembles one on your production server, which makes testing more realistic.

Added benefit is that you get used do to Docker CLI which can be useful when working with Docker on your server.

That is at least my experience...

Collapse
paddymorgan84 profile image
Paddy Morgan Author • Edited

I think I reason I personally leaned towards Docker Desktop was because I already had it installed and as it was just a simple case of enabling it in the settings it felt the most straightforward way to do it.

Have to say though, I don't disagree with your point. What I'll maybe do is have a play myself and append the alternative approach to my series so others can choose for themselves.

Thanks for the comment 👍

Forem Open with the Forem app