title: How can I access wsl2 which is used by Docker desktop?
body: <p>I want to transfer a Docker image from my Windows10 PC to another one, Fedora, using rsync. I can't use WSL, I need WSL2 as the compiler says:</p>
  <pre><code>ubu@DESKTOP-QL4RO3V:/mnt/c/Windows/system32$ docker images                                                                                                                                                                                      
  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.                                                                                                                                                                                                 
  For details about using Docker Desktop with WSL 2, visit:                                                                                                                                                                                       
  https://docs.docker.com/go/wsl2/ 
  </code></pre>
  <p>But I think that as I have Docker desktop it is using WSL2:</p>
  <p><a href="https://i.stack.imgur.com/yMcJA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yMcJA.png" alt="enter image description here" /></a></p>
  <p>But I don't know how to run the wsl2 Docker is using for my own.</p>
  <pre><code>PS C:\Users\antoi&gt; wsl -l -v
    NAME                   STATE           VERSION
  * Ubuntu                 Running         1
    docker-desktop-data    Running         2
    docker-desktop         Running         2
  </code></pre>