-
Notifications
You must be signed in to change notification settings - Fork 828
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
wslpath -u resolves to Docker WSL bind-mount path instead of expected Ubuntu WSL path in a multi-WSL environment #11555
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
|
This ticket should not have been closed Marking a task as #needs-author-feedback without asking for feedback is not acceptable. Especially since you've closed a lot of duplicated tasks referring to this one. |
Solution: docker/for-win#13947 (comment) |
Windows Version
Microsoft Windows [Version 10.0.22631.3527]
WSL Version
2.2.1.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.150.1-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04
Other Software
Docker Desktop 4.29.0 (145265) with WSL2 containers
Repro Steps
Navigate to the Relevant Directory:
Run the Docker File:
docker build -t myimage .
).Close All Terminals:
Open PowerShell (pwsh):
Navigate to the Affected Directory Using WSL Command:
Manually Change Directory to the Affected Directory:
cd
command to ensure you are in the correct context.Verify Directory Path with
pwd
:pwd
to confirm that the terminal is in the correct directory. This should return the expected directory path.Run
wslpath -u .
:pwd
.Expected Behavior
wslpath -u .
result from wsl should matchpwd
.wsl
from PowerShell should open WSL in the current path as it is, not in the Docker bind-mount.Actual Behavior
wslpath -u .
incorrectly resolves to a Docker bind-mount path instead of matching thepwd
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: