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

nerdctl: failed to translate directory from WSL distro #7910

Open
jandubois opened this issue Dec 10, 2024 · 1 comment
Open

nerdctl: failed to translate directory from WSL distro #7910

jandubois opened this issue Dec 10, 2024 · 1 comment
Labels

Comments

@jandubois
Copy link
Member

jandubois commented Dec 10, 2024

I've enabled WSL integration and use nerdctl from inside the distro. The command works, but complains that it cannot translate the current working directory:

suse@rd-w11-test-1:~/hello$ nerdctl run -it hi42
<3>WSL (1774) ERROR: CreateProcessParseCommon:711: Failed to translate \\wsl.localhost\Ubuntu-24.04\home\suse\hello

While the directory indeed cannot be mapped to the Win32 world, it can very well be mapped to the rancher-desktop distro that is running the actual nerdctl command. So there should be no error message like the one shown above.

Note that the directory is translated correctly; it is just the error message that should not be displayed:

suse@rd-w11-test-1:~/hello$ ls -l
total 4
-rwxr-xr-x 1 suse suse 97 Dec  9 19:48 Dockerfile
suse@rd-w11-test-1:~/hello$ nerdctl run --rm -it -v .:/hi busybox ls -l /hi
<3>WSL (2348) ERROR: CreateProcessParseCommon:711: Failed to translate \\wsl.localhost\Ubuntu-24.04\home\suse\hello
total 4
-rwxr-xr-x    1 1002     1002            97 Dec 10 03:48 Dockerfile
@jandubois
Copy link
Member Author

This is not a regression; the same error is displayed by 1.16.0.

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

No branches or pull requests

1 participant