Hi,
recently I’ve started having problems with local only deployments, and found through fly doctor that the local docker instance is not found.
This started happening maybe a couple weeks ago, it could have been a bit longer since my latest local deploy, so it should only be in recent versions of the cli.
which is as expected, but unix:///var/run/docker.sock does not exist.
Turns out that Docker for Mac does not create a symlink anymore to the default endpoint, at least for fresh installs. Since v4.15 it doesn’t run as root anymore, so it doesn’t have permissions to create this symlink.
In the docker docs it’s written, I’ve simply added the symlink and now it works correctly.
It might make sense for flyctl to check both locations, or at least include this in the flyctl docs, as Docker Desktop starts automatically on the desktop-linux context and creates the socket in the user directory where it can write.
Yes, correct. I created the /var/run/docker.sock just like you described.
I also don’t have te other sockets you have on a fresh install. I have docker-cli.sock at the same path you do but no symlink by default.