Skip to content

Instantly share code, notes, and snippets.

@hopsoft
Last active May 27, 2021 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hopsoft/d469b1ad02156e57d169f933a99d7505 to your computer and use it in GitHub Desktop.
Save hopsoft/d469b1ad02156e57d169f933a99d7505 to your computer and use it in GitHub Desktop.
Docker proxyconnect connection refused error

How to "fix" Docker's proxyconnect connection refused error

This worked for me on an Apple M1.

Problem

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? 🤷‍♂️

"Solution"

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.

  1. Reset Docker app to factory settings
  • Docker App > Troubleshoot > Clean / Purge data
  • Docker App > Troubleshoot > Reset to factory defaults
  • Docker App > Troubleshoot > Uninstall
  1. 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
  2. Reinstall Docker Desktop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment