Unable to pull images or login from CLI

OS Version/build
MacOS 14.7

Docker Desktop version
Have tried 4.34.3 and 4.33.0

Steps to reproduce
???

I keep getting the same error from the CLI when trying to pull images or login

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

This just started showing up the other day. I didn’t change anything on my computer before this started happening. This error also happens trying to pull images in the desktop app.

I’ve tried the following:

  • Restarted my computer
  • Uninstalling/reinstalling Docker; completely removing folders related to docker that I could find
  • Reverting to an earlier version of Docker desktop
  • Disabled and reenabled my VPN
  • Tried while not connected to VPN
  • Connected to a different network
  • Connected to a mobile hotspot
  • Changed my DNS server to 8.8.8.8

I can pull images if I use the path
registry.hub.docker.com/library/postgres

I finally found a solution to my particular problem from this stack overflow docker: Error response from daemon: Get https://registry-1.docker.io/v2/: Service Unavailable. IN DOCKER , MAC - Stack Overflow

Have to remove registry-1.docker.io line(s) from the hosts file