After using Docker Desktop for a long time, it was needed to move to another alternative (Docker Desktop is not free any more for some companies). So, proceeding to install the docker package manually, on this case using homebrew on mac.
An error started to occur when pulling docker images from a repository (docker-hub, internal repositories, ECR, etc). The same error occurred when trying to login on docker docker login -u <username>
.
Error saving credentials: error storing credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``
Verify the content of the file ~/.docker/config.json
. It seems Docker Desktop uses an entry credsStore
but docker installed from homebrew uses credStore
.
Just open a text editor and modify the corresponding file of the content.
{ "auths": { ..... }, "credStore": "desktop", "currentContext": "......." }
Easy piece!!! The error was fixed.
The same issue happens if moving from docker to Docker Desktop, but the inverse. You need to change credStore
to credsStore
References
- https://portal2portal.blogspot.com/2021/09/more-fun-with-docker-and-homebrew.html
- https://stackoverflow.com/questions/67642620/docker-credential-desktop-not-installed-or-not-available-in-path
You saved my day !! š
Could you elaborate on how you installed docker with homebrew?
was is just as simple as brew install docker ?
Hi, yes it was as simple as just “brew install docker” … That will install it.