https://rancher.com/ logo
Title
m

melodic-agent-86823

04/06/2023, 8:24 AM
does anyone know what's going on if the credential helper on WSL2 is erroring out with "error saving credentials: error storing credentials - err: exit status 22, out: `A specified logon session does not exist. It may already have been terminated.`" when using containerd (nerdctl login)? I have searched through forums and blogs now for hours. Most of them are saying just remove "credsStore":"wincred" from your docker.config or set it to empty or just remove the whole config.json. None of this works, nerdctl login will always try to use a credential helper in the form docker-credential-xxxxx. If you delete the file it tries 'docker-credential-' if you set it to empty it tries 'docker-credential-undefined', if you set it to 'pass' it tries 'docker-credential-pass' but none of them exists with Rancher Desktop. What I can find is the docker-credential-wincred.exe but for whatever reason is doesn't work with above error,
c

calm-sugar-3169

04/06/2023, 7:26 PM
It looks like you have already created an issue for this, I have assigned the issue to @kind-iron-72902 to take a look at.
k

kind-iron-72902

04/06/2023, 7:27 PM
You could tell him to set
credsStore
to
"none"
and then it will store the password locally on his disk just base64-encoded. This is not secure on a shared machine
But it should bypass the problem until we can get to fixing it
c

calm-sugar-3169

04/06/2023, 7:29 PM
@melodic-agent-86823 It looks like Eric has some temporary workaround ­čĹć