This worked for me on an Apple M1.
docker pull docker/getting-started
Error response from daemon: Get https://registry-1.docker.io/v2/: proxyconnect tcp: dial tcp 192.168.64.1:3128: connect: connection refused
Seriously WTF Docker? 🤷♂️
None of the other "solutions" related to authentication, DNS, or proxy settings worked for me.
I doubt all of these steps are necessary, but this is what I did.
- Reset Docker app to factory settings
Docker App
>Troubleshoot
>Clean / Purge data
Docker App
>Troubleshoot
>Reset to factory defaults
Docker App
>Troubleshoot
>Uninstall
-
Purge all things Docker from the machine
rm -rf /Applications/Docker.app rm -rf ~/Library/Containers/com.docker.docker rm -rf ~/Library/Caches/com.docker.docker rm -rf ~/Library/Group\ Containers/group.com.docker rm -rf ~/Library/Logs/Docker\ Desktop rm -rf ~/Library/Preferences/com.docker.docker.plist rm -rf ~/Library/Preferences/com.electron.docker-frontend.plist rm -rf ~/Library/Saved\ Application\ State/com.electron.docker-frontend.savedState rm -rf ~/.docker sudo rm -rf /Library/LaunchDaemons/com.docker.vmnetd.plist sudo rm -rf /Library/PrivilegedHelperTools/com.docker.vmnetd
-
Reinstall Docker Desktop