Hi Everyone, Need help please, I installed Deskto...
# rancher-desktop
l
Hi Everyone, Need help please, I installed Desktop version in mac, and I tried to check the docker version in the terminal and it is working fine. But i tried to build the image then throughs error as ERROR: Cannot connect to the Docker daemon at unix:///Users/ss/.docker/run/docker.sock. Is the docker daemon running? So could some one help me to understand what's wrong
w
i would check your docker context. that's the one from Docker Desktop. try
docker context use rancher-desktop
b
Rancher Desktop defaults to using containerd as the container runtime. You can only use nerdctl as the CLI with containerd. That said, nerdctl is a 1:1 CLI to docker for the most part. So, either you can alias nerdctl to docker in your terminal or you can also switch to dockerd as the container runtime in the settings of RD. Or, you can just use nerdctl as is. 😁
I really don't understand why docker CLI is installed as part of the RD installation, when it defaults to containerd. This is a constant form of confusion, as it was for me too, when I started with RD.
So, nix what I said above. dockerd is the default. Maybe you selected containerd during installation?