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 /mnt/c/windows/system32/wsl.exe: Invalid argument #3786

Open
tanyeun opened this issue Jan 17, 2023 · 3 comments
Open

nerdctl /mnt/c/windows/system32/wsl.exe: Invalid argument #3786

tanyeun opened this issue Jan 17, 2023 · 3 comments
Assignees
Labels
kind/bug Something isn't working platform/windows triage/need-to-repro Needs to be reproduced by dev team

Comments

@tanyeun
Copy link

tanyeun commented Jan 17, 2023

Actual Behavior

I have Rancher Desktop exposed to WSL
image

I ran into this issue sometimes:
image

Steps to Reproduce

  1. Boot in to Windows
  2. Open WSL terminal
  3. Open Rancher Desktop

When I run into this issue.
I need to manually shutdown wsl and rancher desktop.
Usually restart once and it will work.

Result

nerdctl command does not work in WSL environment (sometimes)

Expected Behavior

nerdctl command should be able to work in WSL environment

Additional Information

OS Version: Windows 10 Enterprise
Version 21H2
OS build 19044.2364

Not sure if this "rancher-desktop-data" stopped has anything to do with this issue:
image

I tried to manually start via this command:

wsl -d rancher-desktop-data
but it was running forever

Rancher Desktop Version

1.7.0

Rancher Desktop K8s Version

v1.24.6

Which container engine are you using?

containerd (nerdctl)

What operating system are you using?

Windows

Operating System / Build Version

Windows 10 Enterprise / 19044.2364

What CPU architecture are you using?

x64

Linux only: what package format did you use to install Rancher Desktop?

None

Windows User Only

No response

@tanyeun tanyeun added the kind/bug Something isn't working label Jan 17, 2023
@gaktive gaktive added the triage/need-to-repro Needs to be reproduced by dev team label Jan 23, 2023
@gunamata
Copy link
Contributor

@tanyeun , I couldn't reproduce the issue with below steps. Do you do something different from below steps?

  • Launch Rancher Desktop using the Desktop shortcut
  • Open a WSL terminal
  • Run nerdctl commands

@tanyeun
Copy link
Author

tanyeun commented Aug 20, 2023

@tanyeun , I couldn't reproduce the issue with below steps. Do you do something different from below steps?

  • Launch Rancher Desktop using the Desktop shortcut
  • Open a WSL terminal
  • Run nerdctl commands

it's a stability issue. It doesn't happen everytime.

@ushuz
Copy link

ushuz commented Aug 28, 2023

This is probably an issue with WSL 2
microsoft/WSL#6170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working platform/windows triage/need-to-repro Needs to be reproduced by dev team
Projects
None yet
Development

No branches or pull requests

4 participants