Warning: failed to get default registry endpoint from daemon (Error response from daemon: Bad response from Docker engine). Using system default: https://index.docker.io/v1/

I am unable to log into Docker. When I try to log in, I get this message:

Warning: failed to get default registry endpoint from daemon (Error response from daemon: Bad response from Docker engine). Using system default: https://index.docker.io/v1/

After I put in my credentials, I get this message:

Error response from daemon: Get https://registry-1.docker.io/v2/: unexpected EOF

I have tried uninstalling and re-installing Docker and restarting my machine. Can anyone help me on this one?

1 Like

@bnm219 My solution was to revert to my default docker environment: eval $(minikube docker-env -u)

(I was using a minikube environment; you could likely replace minikube with the environment you’re in.)