Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker Hub login failure on Mac using Colima [closed]

I am trying to log in to Docker Hub to be able to push my containers to my account. I am on a Mac using Homebrew. Docker and Colima are installed successfully and I am able to build and run containers just fine.

However, when I try to log in with docker login, after entering my username and password it sits for a second before returning this error message:

Error saving credentials: error storing credentials - err: exit status 1, out: `Post "http://ipc/registry/credstore-updated": dial unix /Users/<username>/Library/Containers/com.docker.docker/Data/backend.sock: connect: connection refused`
like image 513
Josh Klein Avatar asked Oct 25 '25 18:10

Josh Klein


2 Answers

The problem here is probably that you have the .docker directory pointing things to Docker Desktop. Try mv ~/.docker ~/.docker.bak and restart colima and try it. I think you'll find that's what it is.

like image 100
rfay Avatar answered Oct 28 '25 09:10

rfay


I had the same issue, and this is how I fixed it:

  1. Stop the Colima process

  2. Swap out the old ~/.docker directory:

    mv ~/.docker ~/.docker_bak
    
  3. Restart Colima

docker login and docker image pull should work now.

like image 41
tech_cartel Avatar answered Oct 28 '25 08:10

tech_cartel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!