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

ko build -L on Mac with Docker desktop fails contacting Docker daemon #1362

Open
antweiss opened this issue Jul 22, 2024 · 1 comment
Open

Comments

@antweiss
Copy link

Getting
"2024/07/22 15:52:50 daemon.Write response:
Error: failed to publish images: error publishing ko://github.com/otomato/myapp: error loading image: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"

The reason for that is that the Docker socket for MacOS is at ~/Library/Containers/com.docker.docker/Data/docker.raw.sock
So the simple fix for this is running sudo ln -s ~/Library/Containers/com.docker.docker/Data/docker.raw.sock /var/run/docker.sock
but it took me a few days to look into this and fix it. Would be nice if this was taken care of automatically.

Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

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

No branches or pull requests

1 participant