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

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

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: