Archive

Posts Tagged ‘Docker Desktop’

HowTo: Use WSL2 with Docker Desktop instead of Hyper-V backend

At installation guide of Docker Desktop one reads:

Containers and images created with Docker Desktop are shared between all user accounts on machines where it is installed. This is because all Windows accounts use the same VM to build and run containers. Note that it is not possible to share containers and images between user accounts when using the Docker Desktop WSL 2 backend.

That note on WSL2 is written in a negative tone, but is probably a plus security-wise. Anyway their WSL2 based engine provides better performance that then legacy Hyper-V backend Docker Desktop was only providing in the past, so one should opt for that.

Apart from the instructions in the installation guide mentioned above, a quick way to check if it is set to use the WSL2 based engine is via the context menu from taskbar tray icon of Docker Desktop to go to Settings and in General section check the value of “Use the WSL 2 based engine”.

clip_image001

clip_image002

clip_image003

%d bloggers like this: