Attempting with a fresh install of Docker to docker-compose up --build a project but getting the error: error getting credentials - err: docker-credential-desktop resolves to executable in current directory (./docker-credential-desktop), out:
Docker compose is installed:
% docker-compose --version
Docker Compose version v2.18.1
I’ve seen various things around the net about the json config being incorrectly formatted, e.g. credsStore vs credStore:
Got bitten by the same error message after having deinstalled a botched default Docker Desktop installation due to Docker never having heard of spaces in Windows paths and reinstalling. Afterwards, your dreaded error. In my case, a swift rm -rf ~/.docker cured the situation and I was then able to use “docker compose” without errors.
For me, it seems that the ~/.docker directory was created by Docker Desktop which I had installed before this error. And though I had uninstalled it and switched to the default context, this config dir and files were still being used, hence the error.