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

Cannot connect to the Docker Damon via /var/run/docker. sock #6536

Closed
2 tasks done
lucidlips opened this issue Oct 26, 2022 · 2 comments
Closed
2 tasks done

Cannot connect to the Docker Damon via /var/run/docker. sock #6536

lucidlips opened this issue Oct 26, 2022 · 2 comments
Labels
lifecycle/locked status/duplicate Already being tracked on another issue

Comments

@lucidlips
Copy link

  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features

Expected behavior

Docker works for my use case like the last version did.

Actual behavior

This version does not work.

The Issue

After a clean install of Docker at version v4.13.0, executing skaffold dev results in a fatal error at the cache check stage:
Error checking cache. getting imageID for ghcr.io/digittl/console: latest: Cannot connect to the Docker daemon at unix:///var/run/docker. sock. Is the docker daemon running?

Cause

Skaffold v1.39.2 relies on a unix socket located at /var/run/docker.sock in order to connect with the Docker daemon. Previous versions of Docker Desktop for mac would create a sym link in that location (tested with v4.12.0) that would point to the actual location of the docker.sock. I found a fresh install of Docker v.4.13.0 did not automatically create this sym link so Skaffold is never able to find the daemon. A user upgrading to v4.13.0 from a previous version will retain the /var/run/docker.sock symlink and not be affected, clean installs will be affected.

  • macOS Version: 13.0
  • Intel chip or Apple chip: apple chip
  • Docker Desktop Version: 4.13.0
@nicks
Copy link

nicks commented Oct 26, 2022

Thanks for the report! We're trying to make Docker Desktop more userspace-friendly (e.g., fewer root privileges). As part of that, we're migrating the sockets to user-owned directories rather than root-owned directories (like /var/run). Desktop 4.13 no longer installs a socket under /var/run.

For now you can work around this by creating the symlink manually:

sudo ln -s "$HOME/.docker/run/docker.sock" /var/run/docker.sock

We're talking internally about a better way to roll this out. For now, I'm going to duplicate this against #6529 to centralize the discussion.

@nicks nicks closed this as completed Oct 26, 2022
@nicks nicks added the status/duplicate Already being tracked on another issue label Oct 26, 2022
@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

@docker docker locked and limited conversation to collaborators Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/locked status/duplicate Already being tracked on another issue
Projects
None yet
Development

No branches or pull requests

3 participants