Score:1

Cant make wsl2 working with on docker and on ubuntu

in flag

This is the list:

aaa@2UL:~$ wsl.exe --list --verbose
  NAME                   STATE           VERSION
* Ubuntu-20.04           Running         1 <------------note - this is version one
  docker-desktop-data    Running         2
  docker-desktop         Running         2

When I run docker ps in the bash I get:

The command 'docker' could not be found in this WSL 1 distro.
We recommend to convert this distro to WSL 2 and activate
the WSL integration in Docker Desktop settings.

In ubuntu I have the following settings: enter image description here

This is my Windows info:

Edition Windows 10 Home
Version 21H1
Installed on    ‎10/‎07/‎2021
OS build    19043.928
Experience  Windows Feature Experience Pack 120.2212.551.0

This command has no effect: wsl --set-default-version 2

I want to be able to access docker from ubuntu, how is that possible?

UPDATE

When I run: wsl.exe --set-version Ubuntu-20.04 2 Nothing happened. this is the output:

Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
The Windows Subsystem for Linux instance has terminated.
Press any key to continue...

Thanks

Score:1
cn flag

Just try:

wsl.exe --set-version Ubuntu-20.04 2

Make sure to run this command from Command prompt (CMD) or Powershell.

in flag
Will accept it soon. can you please also have a look here: https://askubuntu.com/questions/1351156/how-to-locate-docker-drive-location-on-wsl2 ? thanks
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.