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

Fresh install: docker.sock symlink created for wrong user #330

Closed
voidrender opened this issue Aug 17, 2016 · 3 comments
Closed

Fresh install: docker.sock symlink created for wrong user #330

voidrender opened this issue Aug 17, 2016 · 3 comments

Comments

@voidrender
Copy link

Expected behavior

  • Installed Docker for Mac
  • docker run hello-world
  • Hello World succeeds.

Actual behavior

docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?. See 'docker run --help'.

Information

Diagnostic ID: F76ED126-D81F-40D4-8924-5101BA1A6BA5
Docker for Mac: 1.12.0-a (Build 11213)
macOS: Version 10.11.4 (Build 15E65)
[ERROR] docker-cli
/var/run/docker.sock does not exist
Permission denied (EACCES) connecting to /var/run/docker.sock: check permissions
docker ps failed
[OK] app
[OK] moby-syslog
[OK] disk
[OK] virtualization
[OK] system
[OK] menubar
[OK] osxfs
[OK] db
[OK] slirp
[OK] moby-console
[OK] logs
[OK] vmnetd
[OK] env
[OK] moby
[OK] driver.amd64-linux

I have OS X Server and Xcode Server installed and running on this Mac. This sets up a user for the build process called _xcsbuildd, and the symlink appears to be pointing to a path for the _xcsbuildd user instead of my user (ioveracker).

> ls -l /var/run/docker.sock
lrwxr-xr-x  1 root  daemon  61 Aug 16 13:53 /var/run/docker.sock -> /var/_xcsbuildd/Library/Containers/com.docker.docker/Data/s60

Steps to reproduce

  1. Install OS X Server?
  2. Turn on Xcode Server?
  3. Install Docker for Mac. Installation succeeds and Docker starts successfully.
  4. Open Terminal and try to run docker run hello-world.
@voidrender
Copy link
Author

I found a workaround: remake the link to the equivalent file in my home dir.

~ ❯❯❯ sudo ln -sf ~/Library/Containers/com.docker.docker/Data/s60 /var/run/docker.sock
~ ❯❯❯ ls -l /var/run/docker.sock
lrwxr-xr-x  1 root  daemon  63 Aug 17 13:44 /var/run/docker.sock -> /Users/ioveracker/Library/Containers/com.docker.docker/Data/s60

After remaking the link, docker run hello-world succeeds.

@dsheets
Copy link
Contributor

dsheets commented Aug 18, 2016

This looks like a duplicate of #47. We're investigating the issue.

@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.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants