In my case I had installed before docker desktop for linux (Ubuntu) and then installed the engine (I had some issues with sefacl using the desktop version).
docker desktop created the extra entries mentioned by Bertrand and then the engine tries to look for an unrecognized command docker-credential-desktop. After removing the extra keys created by docker desktop I’m not longer having this error.
Hi,
I have the same problem as you described. Can you help me and give more specific information about:
“After removing the extra keys created by docker desktop I’m not longer having this error.”
Where is this config file which was altered by the docker desktop?
I need to remove these additional entries, but I do not know where.
Just wanted to point out that the property name of credsStore is correct. docker login | Docker Documentation. This is usually an error that happens when the credsStore value config (in this case “desktop”) cannot be retrieved. In my case, the underlying problem was that I installed Docker Desktop but then reinstalled it to use just Docker Engine with Desktop. The credsStore value in ~/.docker/config.json did not update or remove the credsStore value, so it errored properly. If you are not using another credsStore, just remove the value as a whole. Renaming it to credStore may just confuse you later if you ever need to look at it again.
Disclaimer: This happened to me on a Linux install but the same would apply to WSL2 or MacOS. You may not want to try deleting the value for MacOS. It might need to be “osxkeychain”.
it’s worked for me , i saved both credsStore and credStore in congfig.json and try it again , got the same error message , then i delete credsStore. only saved credStore in json file , the it worked, don’t realy know why.