Open waterson opened 1 year ago
I am affected by this issue. It was working on 4.15 and older versions, not on 4.16.
May I help diagnose the issue?
Same problem here, is this related to changed in the docker VM structure somehow?
I am also experiencing this issue, would love to know if there is any way around this. @waterson how are you downgrading to 4.14.1?
I downgraded to an older version too, by following the uninstall instruction from the doc (change the tab to 'mac' as I can't link the tab directly). Then you delete the docker.app from /Applications and install the old version. You will lose every container, image etc
@obourgain I was able to downgrade to v15 simply by copying the older version in my application folder and overwrite the "newer" docker version. it was all working again then. containers are still there and working etc.
is this project simply ongoing? or is there an alternative?
Thanks for the tip
The docker dev build linked in the issue below fixed this for me. https://github.com/docker/for-mac/issues/6699#issuecomment-1401540509
FYI Docker Desktop 4.17.0 is out and appears to have resolved this issue: https://docs.docker.com/desktop/release-notes/#4170
FYI https://github.com/docker/for-mac/issues/6747
With 4.17.0, the application stopped working for me after a while.
FYI Docker Desktop For Mac 4.17.0 is OK.
When it came out, Docker Desktop v4.17.0 was ok, but something has changed (not sure exactly what) and now docker-mac-net-connect fails to connect to the daemon socket in the Linux VM and set the bridge up.
I've confirmed that 4.17.0 works from a fresh install (M2), but it's only been an hour so far.
Looks like a lot of people are seeing only a temporary fix with 4.17.0, then it reverts back to connection issues. Going to see if I can reproduce this on my end by leaving it running for awhile. Can anyone confirm if they were able to get 4.17.0 working permanently?
As @skriss pointed out, Docker Desktop for Mac did fix in 4.17.0 a UDP connection tracking bug when connecting to host.docker.internal
. This bug would definitely have an impact on this tool (Wireguard uses UDP and connects via host.docker.internal
, see below) - I assume this is what caused the original 4.16.1 problems.
In case it helps you debug, you can read about how the tunnels work in the README: https://github.com/chipmk/docker-mac-net-connect#how-does-it-work. In summary:
docker-mac-net-connect
) acts as the Wireguard server, the Linux VM acts as the client (via Linux kernel module).
host.docker.internal
, so if this doesn't resolve, a connection won't establishI've been running Docker Desktop 4.17.0 with docker-mac-net-connect
for the past week and done the following:
After this, I am still able to connect to the containers directly as expected.
@waterson @obourgain @tommy2d @philbrookes @Rodi26 @michelesr looks like you all experienced issues. I'm hoping to resolve this if it is ongoing. Can you confirm if you are still unable to connect to containers after:
Thank you.
I'm seeing this issue still on 4.18.0 after following your steps with additionally purging all local vms/images/volumes after installing 4.18.0, rebooting, then rebuilding images. VMs were unable to do things such as apt update
after a day.
It's working again for me with Docker Desktop v4.19.0
Edit: tried again later and getting:
ERROR: (utun0) 2023/05/04 10:49:17 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?
I cannot seem to reproduce the bug after upgrading to Docker Desktop v4.19.0. However, the bug always took some time (or some unknown trigger) to start manifesting itself in previous version. I will keep a close eye on it.
It's working again for me with Docker Desktop v4.19.0
Edit: tried again later and getting:
ERROR: (utun0) 2023/05/04 10:49:17 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?
EDITED 2023-07-17
If the option in "Settings > Advanced > Allow the default Docker socket to be used" is already enabled and the socket is not available try disabling it and re-enabling it.
I've had great success running docker-mac-net-connect with Docker Desktop 4.15 and below on an M1 mac.
However, that environment started to get a bit unstable after I upgraded to Ventura 13.1, possibly because of https://github.com/docker/for-mac/issues/6530. Anyway, I recently upgraded to 4.16.1 in hopes of having things get a bit more stable, but I'm not able to get docker-mac-net-connect working anymore. Below is what I see in the debug log...
For now, I've downgraded back to 4.14.1 and things are working again (albeit with some instability):
Thanks in advance for any advice!