OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

OpenDevin does not run with Rancher on a Mac

Open olafgeibig opened this issue 1 year ago • 2 comments

Known issue with Rancher on Mac. Please add to README.md

If you are running Rancher Desktop you need this line:

sudo ln -s ~$USER/.rd/docker.sock /var/run/docker.sock

https://github.com/rancher-sandbox/rancher-desktop/issues/2534

olafgeibig avatar Apr 03 '24 19:04 olafgeibig

Probably a little too much of an edge case for the README, but we're working on various cookbooks for various scenarios. This seems like a good one to add

rbren avatar Apr 04 '24 03:04 rbren

I don't know how OpenDevin connects to the docker daemon, but modern client libraries normally support the concept of docker contexts.

Rancher Desktop creates a rancher-desktop context and also makes it the current context if no context exists yet:

$ docker context show
rancher-desktop

If it is set to a different context, you can switch with docker context use rancher-desktop. Alternatively you can also set the DOCKER_CONTEXT=rancher-desktop environment variable. Or set DOCKER_HOST="$HOME/.rd/docker.sock".

But if OpenDevin doesn't have support for the regular docker context/host mechanisms, then creating the symlink may be the only option. But it should be a last resort, as it makes permanent changes to the system.

PS: You can also configure Rancher Desktop to allow Administrative Access, which will allow it to create the socket in the default location. Personally I would not recommend it, as you will have to enter your password to re-enable sudo access every time you start the app after you reboot your machine.

jandubois avatar Apr 05 '24 21:04 jandubois

Hopefully the new docker installation method fixes this. If not, lmk and I'll reopen

rbren avatar Apr 15 '24 14:04 rbren