Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker for MAC | Cannot run program "docker-credential-desktop"

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.

like image 754
va1b4av Avatar asked Apr 15 '20 05:04

va1b4av


People also ask

Where is Docker credential Desktop?

When you log in, the command stores credentials in $HOME/. docker/config. json on Linux or %USERPROFILE%/. docker/config.

Can I use Docker CLI without Docker Desktop on Mac?

UPDATE 2022-06-28: I'm still using this setup. Works amazingly.

How does Docker Desktop work on Mac?

Docker Desktop works with your choice of development tools and languages and gives you access to a vast library of certified images and templates in Docker Hub. This enables development teams to extend their environment to rapidly auto-build, continuously integrate, and collaborate using a secure repository.

How do I reset Docker credentials?

If you ever change your Windows password, you'll want to head over to your Docker for Windows settings, shared drives, then click “Reset Credentials” under your shared drives.


1 Answers

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

like image 85
Monish Guru Avatar answered Oct 18 '22 03:10

Monish Guru