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

Get "http://unix.sock/info": dial unix /var/run/docker.sock: connect: no such file or directory #337

Closed
slutske22 opened this issue May 31, 2023 · 1 comment

Comments

@slutske22
Copy link

slutske22 commented May 31, 2023

I recently udpated my docker to v23.0.5 on mac OSX Ventura 13.4 (Intel chip). After doing so, and running ctop, I get the daemon erroring out with this message:

 Get "http://unix.sock/info": dial unix /var/run/docker.sock: connect: no such file or directory     

Screenshot 2023-05-30 at 4 54 04 PM

Docker is running and the docker command is available. Its true that there is no docker.sock at /var/run/docker.sock, despite the docker docs saying so.

I did manage to find a docker.sock at Users/sethlutske/.docker/run/docker.sock, so I set the environment variable export DOCKER_HOST=/Users/sethlutske/.docker/run/docker.sock as recommended in the docs, but then running ctop gives me another error:

Get "tcp:///Users/sethlutske/.docker/run/docker.sock/info": unsupported protocol scheme "tcp"

Did I miss something here? Is the new docker.sock not the same as the old one that ctop expects? And why is it in a different location than where the docker docs say it should be? How can I get ctop to work with docker v23 using its customization options?

@slutske22
Copy link
Author

slutske22 commented Jun 5, 2023

As I suspected, this is not an issue with ctop so much as it is an update with docker. The solution to this can be found here: https://devops.stackexchange.com/questions/17905/ctop-does-not-work-with-latest-version-of-docker-get-http-unix-sock-info-d. For the lazy:

This is probably because Docker Desktop version 4.18+ doesn't create the default Docker socket /var/run/docker.sock anymore.

The reasoning is on the official docs: https://docs.docker.com/desktop/mac/permission-requirements/

If you want to have the default socket back, you should open your Docker Desktop, go to Settings -> Advanced -> Allow the default Docker socket to be used and press Apply & restart.

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

1 participant