-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fetching Image From Public Registry Results in HTTP 401 on Windows 11 Under WSL2 Through Rancher Desktop #1589
Comments
Hi @donmai2024 , it looks like your scenario is saving the credentials in wincred in Windows host and reading it from If so, you may get the credentials from wincred in Windows: echo "ghcr.io" | docker-credential-wincred get Do the same from rancher-desktop in WSL: echo "ghcr.io" | docker-credential-rancher-desktop get And see if the credentials match. I tried to reproduce this in my environment, but |
Hello @Wwwsylvia,
Yes. That's how I hope it would work.
This returns my Github credentials.
This returns nothing.
This hung for me too. I let it run for about 5-10 minutes, and then it completed with no output (but it did return control to the system). The credential helper seems to be a shell script calling curl against a rancher endpoint. |
@donmai2024 It doesn't look like
This is more of a set-up issue with |
@Wwwsylvia, thank you for the insights and support! As you say, it seems to be a problem with For a closing note: I have found a potential workaround that I'll need to look into more on my end. By updating the docker
to this:
I was able to use |
What happened in your environment?
Hello,
oras
fails authorization when ran via WSL2 through Rancher Desktop to pull from a public GitHub container registry.Example CLI log:
docker config.json
What did you expect to happen?
The manifest and images to be pulled to my local workstation.
How can we reproduce it?
rancher-desktop
as your distribution for WSL2docker login
in the Windows host, so that your credentials are in the Windows Credential Manageroras manifest fetch
in the WSL2 shell against a public image of your choiceWhat is the version of your ORAS CLI?
What is your OS environment?
Windows 11, WSL2, Rancher-Desktop
Are you willing to submit PRs to fix it?
The text was updated successfully, but these errors were encountered: