Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker desktop version 4.37.2 breaking docker-mac-net-connect? #46

Open
kmahelona opened this issue Jan 16, 2025 · 1 comment
Open

docker desktop version 4.37.2 breaking docker-mac-net-connect? #46

kmahelona opened this issue Jan 16, 2025 · 1 comment

Comments

@kmahelona
Copy link

I had this error, docker/for-mac#7520, and also noticed docker-mac-net-connect stopped working. When I tried the troubleshooting, the error I got was,

ERROR: (utun4) 2025/01/16 22:00:59 Failed to setup VM: failed to pull setup image: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Docker was running, but I assume these that docker mac issue is related to docker-mac-net-connect not working. Has anyone else experienced issues with 4.37.2?

The solution was to downgrade back to 4.37.1 and reinstall, restart, etc. until it worked again.

I just want to add that docker-mac-net-connect has been amazing for us for local development. Thank you for this package.

@dev-comrade
Copy link

dev-comrade commented Feb 20, 2025

Hi @kmahelona

Possible solution:
I had a similar issue, and the main reason was that Docker Desktop stopped creating the Unix socket /var/run/docker.sock. Maybe you are facing the same problem. Here’s what you can do:

  1. Check if the docker.sock exists: ls -al /var/run/docker.sock

Example output:

lrwxr-xr-x  1 root  daemon  38 Feb 20 12:34 /var/run/docker.sock -> /Users/gashpen/.docker/run/docker.sock
  1. If /var/run/docker.sock is missing or points to an incorrect location, try the following:
  • Open Docker Desktop Settings → Advanced.
  • Toggle “Allow the default Docker socket to be used” off and on again.
  • You will be asked to enter your password.
  • After that, the socket should be created.

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants