Docker resources [You don't have any WSL 2 distro. Please convert a WSL 1 distro to WSL 2]

Despite the fact I have installed two distros in my windows 10

PS C:\Users\sdancer> wsl -l -v                                                                                            NAME            STATE           VERSION
* Ubuntu-20.04    Stopped         2
  Ubuntu-18.04    Stopped         2
PS C:\Users\sdancer> ]

Under Resources & WSL INTEGRATION I get the message " You don’t have any WSL 2 distro. Please convert a WSL 1 distro to WSL 2, or install a new distro and it will appear here. More info"

Why?

Uninstall your distros, ensure Hyper-V is enabled, and WLS2 is enabled, and reinstall your distros.
Worked for me.

1 Like

@sdancer75 Maybe you just did forget one step of the installation process?

I myself missed one important point during installation of Docker Desktop for Windows and had the same problem that you describe: My Ubuntu distro did not appear in Docker Resources settings and it stated that I wouldn’t have any WSL 2 distros (which was obviously not correct).

Fortunately (for me) it was not necessary to uninstall and reinstall the Ubuntu distro - there is a much easier way:

I could resolve this issue for me by adding my Windows user account to the group docker-users - just as it says in the installation instructions for Windows:

If your admin account is different to your user account, you must add the user to the docker-users group. Run Computer Management as an administrator and navigate to Local Users and Groups > Groups > docker-users . Right-click to add the user to the group. Log out and log back in for the changes to take effect.

After doing that, everything worked as expected and I was able to see my Ubuntu in Docker settings as a WSL2 distro.

So before trying anything other you should first check if your user is a member of the group docker-users.

Thanks !!

I already solved the problem. The 1st step I had to do was to upgrade my Win10 from home to Pro which supports HyperV. Then I uninstalled docker and re-installed it again.

Best Regards,

PS C:\Users\Al> wsl -l -v
  NAME                   STATE           VERSION
* docker-desktop-data    Running         2
  Ubuntu                 Running         1
  docker-desktop         Running         2
PS C:\Users\Al> wsl --set-version Ubuntu 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Conversion complete.
PS C:\Users\Al>

I had to update my ubuntu from version 1 to version 2 for it to connect…

2 Likes

@mocapca
I had a working environment prior to migrating my Ubuntu distribution to another drive. I went too far by also moving “docker-desktop”. Things got hammered, and I ended up reinstalling Docker Desktop. And then for some reason, Ubuntu was no longer recognized… that is until I applied your recommendation. Thanks for sharing!

In My Case just update the Distribution from wsl 1 to wsl 2

How to ?

→ To check wsl version
" wsl -l -v "

→ To Upgrade to wsl 2
" wsl --set-version 2 "

Then Refresh in Docker → Resource → Wsl Integration → Apply and Restart

Thank You

I followed your guide & it’s worked!
E.g:

wsl --set-version Ubuntu-20.04 2

Hi, for the same problem I ran
wsl --set-version Ubuntu-20.04 2 I got below
“There is no distribution with the supplied name.”

Docker Desktop (v4.9.1) worked well on my laptop until the recent Windows 10 updates. After tried the advices above, re-installed WSL2 (rebooted OS), Ubuntu, and Docker Desktop (tried versions: 4.29.0, 4.27.2, 4.26.1, 4.9.1), I still couldn’t launch Docker Deshtop.

image

image

image

1 Like

it is work for me
thank you~