Reputation: 305
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`
Upvotes: 4
Views: 5959
Reputation: 29
I had the same issue, and this is how I fixed it:
Stop the Colima process
Swap out the old ~/.docker
directory:
mv ~/.docker ~/.docker_bak
Restart Colima
docker login
and docker image pull
should work now.
Upvotes: 2
Reputation: 12955
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.
Upvotes: 22