Docker daemon at unix:///var/run/docker.sock

Anyone having this issue with

MernyPierreMBP:~ merny24$ docker ps Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? MernyPierreMBP:~ merny24$

I have a M2 Max Macbook Pro Arm64 model

Just to post the question here too, since the other topic was about Linux and Docker CE:

“And what about the GUI? How did you start Docker Desktop? .”

1 Like

It doesnt start it shows as if it started in the background but nothing appears on the screen.
It says a messages like you are starting docker this is a software downloaded from the internet do you want to run it and i click yes but it never work. i also cant run any docker commands from the cli. It used to work on my older mac but i think its something with this version arm64 thats causing the issue. i dont know how to start the deamon.

Client:
 Version:    26.1.4
 Context:    default
 Debug Mode: false

Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info
MernyPierreMBP:~ merny24$ 

MernyPierreMBP:~ merny24$ docker version
Client:
 Version:           26.1.4
 API version:       1.45
 Go version:        go1.21.11
 Git commit:        5650f9b
 Built:             Wed Jun  5 11:26:02 2024
 OS/Arch:           darwin/arm64
 Context:           default
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
MernyPierreMBP:~ merny24$

And which version of Docker Desktop? Is it 4.32.0?

MernyPierreMBP:~ merny24$ docker --version
Docker version 26.1.4, build 5650f9b
MernyPierreMBP:~ merny24$

Not sure if this would be the one because i cant run the application on my machine to tell which version i have installed

That is the version of Docker. You can’t get the version of Docker Desktop if Docker Desktop cannot be started. You had to download it from somewhere. As you mentioned it, from the official Docker website. That is where you can see which version you downloaded.

Edit:

Forget it. It seems the version is not mentioned on the main pages. So if you downloaded the latest, it is 4.32.0, but the best if you download it from the release notes page so we will know which one you are using

1 Like

Yes i just checked the release notes and installed the latest version 4.32.0, the issue is the same.

Does it message appear only once after you first try to install Docker Desktop or every time? Do you have “Docker” on the Launchpad?

1 Like

It appears everytime and yes i have docker on the lauchpad

I think my previous message was confusing. I wanted to ask if that message appeared when you wanted to install Docker or every time when you start Docker, but the “when you start” part was missing. If it happened once and not when you wanted to start Docker desktop, that is normal. If it happened multiple times, then you wanted to install Docker DEsktop multiple times. When you start Docker Desktop, there should be error messages. If the macOS is old on your mac, that could be a problem. If you also tried to uninstall Docker Desktop and didn’t help to finally start it properly, that is a bug I can’t help you with. But you can search for issues on GitHub and report it if you don’t find this.

Maybe you tried to uninstall Docker DEsktop but did it wrong. Then I can recommend the official uninstallation guide

If it doesn’t help, I also have a video for an older version but the ideas might work on newer versions as well

https://youtu.be/maQJSnRdy10

If nothing helps, then you will indeed need to report it as a bug on GitHub

Thanks mate. The last step helped me to get this issue resolved.