How to share a folder of a Windows container WSL2 to Windows host?

Hi,
i just installed Docker Container for Windows on my desktop and i am running a Windows container in WSL 2 mode with a prebuilt application inside.
I am trying to share a folder (C:\SHARE\ ) of the guest machine (container) so the windows 10 host can read/write on it.

In the settings panel i see no options for sharing.
The documentation says “The File sharing tab is only available in Hyper-V mode, because in WSL 2 mode and Windows container mode all files are automatically shared by Windows.”
but i still don’t understand how to activate the file sharing.

Trying to open the IP from file explorer ( \\x.x.x.x ) ends with an error.

Any Help?
Thank you.

I am also having the same issue please explain

That’s rather a WSL2 question than a docker question :slight_smile:

You can use \\wsl$ to access files of a wsl2 distribution.

If your distribution is called Ubuntu-20.04, then you can access the root of the filesystem with \\wsl$\Ubuntu-20.04