https://rancher.com/ logo
Title
s

some-kitchen-66333

11/15/2022, 10:00 PM
I got
Cannot connect to the Docker daemon
when running:
docker-compose build
f

fast-garage-66093

11/15/2022, 10:03 PM
If you did not allow administrative control, then you will have to switch to the Rancher Desktop docker context:
docker context use rancher-desktop
Or, one step earlier: are you sure you selected "dockerd" as the container engine? If you are running "containerd" then you need to use
nerdctl
instead of
docker
to interact with the engine.
s

some-kitchen-66333

11/15/2022, 10:05 PM
f

fast-garage-66093

11/15/2022, 10:07 PM
That looks like a really old version of Rancher Desktop; can you try upgrading to 1.6.2?
s

some-kitchen-66333

11/15/2022, 10:10 PM
I can't I work for Oracle.
so when I do
docker context use rancher-desktop
, then I get: Cannot connect to the Docker daemon at unix:///Users/tczutno/.rd/docker.sock. Is the docker daemon running?: driver not connecting
f

fast-garage-66093

11/15/2022, 10:15 PM
That is weird; does the socket exist:
ls -l ~/.rd/docker.sock
?
s

some-kitchen-66333

11/15/2022, 10:16 PM
I had to bounce Rancher. And also do
docker context use rancher-desktop
And then it worked. Thanks for your suggestions
f

fast-garage-66093

11/15/2022, 10:17 PM
Ok, good. Glad you got it working! And hopefully one day you can upgrade too... 🙂