Reputation: 471
I'm trying to create a Docker image on a Mac computer. The command fails with the following error. I'm on Docker Desktop version 2.2.05.
Cannot run program "docker-credential-desktop": error=2, No such file or directory
I've read on some forums that including "credsStore": "osxkeychain" or "credsStore": "desktop" in ~/.docker/config.json. fixes the problem but I'm not able to find this file.
Has anybody faced this issue before? Any inputs would be appreciated.
Upvotes: 17
Views: 11865
Reputation: 336
If you are trying to use with Spring Boot - fabric8 plugin and on mac machine do the following :
In ~/.docker/config.json change credsStore to credStore
Upvotes: 28
Reputation: 1634
On macOS this file is located in:
/Users/YourUserName/.docker/config.json
The content of this file should look like this:
{
"stackOrchestrator" : "swarm",
"auths" : {
"https://index.docker.io/v1/" : {
}
},
"credsStore" : "desktop",
"experimental" : "disabled"
}
Upvotes: 1