https://rancher.com/ logo
Title
k

kind-wolf-27908

03/23/2023, 9:41 PM
After starting the rancher, when I am trying to build the image, getting following error: ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
f

fast-garage-66093

03/23/2023, 9:45 PM
Did you configure RD to use moby instead of containerd?
k

kind-wolf-27908

03/23/2023, 9:45 PM
yes
f

fast-garage-66093

03/23/2023, 9:46 PM
If you did, but are not allowing administrative access, did you switch the docker context with
docker context use rancher-desktop
?
k

kind-wolf-27908

03/23/2023, 9:46 PM
context "rancher-desktop": context not found: open /Users/shivananda.shiragavi/.docker/contexts/meta/b547d66a5de60e5f0843aba28283a8875c2ad72e99ba076060ef9ec7c09917c8/meta.json: no such file or directory
f

fast-garage-66093

03/23/2023, 9:49 PM
That's weird, doesn't look like RD is running with moby then. What platform are you using?
Also check
docker context ls
k

kind-wolf-27908

03/23/2023, 9:51 PM
I am using Mac book pro M1
postgres % docker context ls NAME DESCRIPTION DOCKER ENDPOINT ERROR default * Current DOCKER_HOST based configuration unix:///var/run/docker.sock
Screenshot 2023-03-23 at 2.52.24 PM.png
Screenshot 2023-03-23 at 2.53.11 PM.png
This error I am getting whenever I am starting the app
It worked!!!
it was not working as my username is long, after executing following steps it worked mv ~/Library/Application\ Support/rancher-desktop/lima ~/.rdlima ln -s ~/.rdlima ~/Library/Application\ Support/rancher-desktop/lima
Thanks @fast-garage-66093 for looing into it!!