https://rancher.com/ logo
b

brief-lunch-13572

07/22/2022, 7:13 AM
Hi team i am getting following error while run docker login any idea ?/usr/local/bin/docker-credential-rancher-desktop: source: line 5: can't open '/etc/rancher/desktop/credfwd': No such file or directory FATA[0003] error saving credentials: error storing credentials - err: exit status 2, out: `
f

fast-garage-66093

07/22/2022, 9:26 PM
This sounds like you are running
docker login
inside the
rancher-desktop
VM; you should run it on the host instead.
Beyond that, we would need more info on what exactly your are doing to understand where it goes wrong.
b

brief-lunch-13572

07/25/2022, 11:00 AM
HI i am runing docker login command from host only..it works for login to docker or jfrog repo ..however it is not working while login to AWS Repo..i see .docker/cofig.json file is not getting updated ...this could be the reason why i am getting error ..it was working fine before i updated latest racher version
docker login /usr/local/bin/docker-credential-rancher-desktop: source: line 5: can't open '/etc/rancher/desktop/credfwd': No such fil e or directory
above is the error i am getting
i think rancher desktop 1.4 has default docker credential store as Pass and that is causing issues with update credetial in .docker/config file
it seems rancher 1.4 upgrade change the way credential stored for githube which could be the reason i am no longer able to save data in docker/config.json ..can anyone help here so i can store AWS ECR credential while login to docker ECR registry ?
i have redeploy rancher this time i use docker demon and followed steps mantioned in https://stackoverflow.com/questions/51222996/docker-login-fails-on-a-server-with-no-x11-installed which fix my issue.
526 Views