Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL2 start folder is /mnt/wsl/docker-desktop-bind-mounts/.../mnr/c/Users/me instead of /mnt/c/Users/me #6464

Closed
uishon opened this issue Jan 25, 2021 · 7 comments

Comments

@uishon
Copy link

uishon commented Jan 25, 2021

Environment

Windows build number: Microsoft Windows [Version 10.0.19042.746]
Your Distribution version: Ubunutu, Release:        20.04
Whether the issue is on WSL 2 and/or WSL 1: Linux version 4.19.128-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Tue Jun 23 12:58:10 UTC 2020

Steps to reproduce

Docker Desktop running, latest version- 3.1.0 (51484) with WSL2 integration enabled.
Start any distribution (whether docker wsl2 integration is enabled for that specific distro or not), you get the long path as your current start (home) folder.

PS C:\Users\uisho> wsl
uri@milky-way:/mnt/wsl/docker-desktop-bind-mounts/Fabric/8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1/mnt/c/Users/uisho$

where Fabric is the name of one of the distributions (originally an Ubuntu-18.04 distro).

WSL logs:

Expected behavior

uri@milky-way:/mnt/c/Users/uisho$
uri@milky-way:/mnt/wsl/docker-desktop-bind-mounts/Fabric/8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1/mnt/c/Users/uisho$
@uishon
Copy link
Author

uishon commented Jan 25, 2021

https://aka.ms/AAay5xt

@benhillis
Copy link
Member

I believe this is a dupe of #6196

@uishon
Copy link
Author

uishon commented Jan 26, 2021

Well, I trust your judgement although - if I managed to get #6196 right - it's not the exact same case. In my case, I can access /mnt/c/Users/ folder. I can cd to it and it seems to be mounted correctly. The issue is that from some reason, the start folder WSL starts with is that long folder that is under the /mnt/wsl/docker-desktop-bind-mounts root. Did I misunderstand #6196? Do you still think it's the same root cause despite the difference?

@uishon
Copy link
Author

uishon commented Jan 26, 2021

Just realized it's more similar than I thought. On one distro, I do see /mnt/c/Users but there are others where it's missing. Not sure why but out of the 3 distros I'm using - 2 have /mnt/c mounted properly (although WSL still uses the long path for the start directory) and the 3rd distro doesn't even have it mounted.

@benhillis
Copy link
Member

/dupe #6196

@ghost
Copy link

ghost commented May 6, 2021

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

@gsusI
Copy link

gsusI commented Jul 22, 2024

Solution: docker/for-win#13947 (comment)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants