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

create dev environment failed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock #6741

Open
jonmelia opened this issue Feb 21, 2023 · 3 comments

Comments

@jonmelia
Copy link

jonmelia commented Feb 21, 2023

This issue seems to have re-occurred in v4.16.2 on MacOS Ventura

Another for v4.16.2. As my Mac is managed by corporate, I can't add the symlink due to permissions issues so am currentl y unable to use.

Originally posted by @jonmelia in #6531 (comment)

@jonmelia
Copy link
Author

export DOCKER_HOST=unix:///$HOME/.docker/run/docker.sock seems to resolve the issue on Mac

@StefanScherer
Copy link
Member

Thanks for reporting this. We fixed Dev Environments to use the user's docker.sock by default.

I found this last comment in the other ticket #6531 (comment)
Could you have a look at your ~/.docker/config.json and see if you could remove the currentContext there?

@nirajfu3e
Copy link

Tried removing the currentContext which didn't work at all. @jonmelia solution had worked once then I had to restart and it just stopped working again. Only running these commands worked even after reinstalling. Might not be the correct solution but might help someone:

sudo ln -s "$HOME/.docker/run/docker.sock" /var/run/docker.sock
sudo chown -R $(whoami) /var/run/docker.sock

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

No branches or pull requests

3 participants