OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

Run Dockerless?

Open cocktailpeanut opened this issue 1 year ago • 4 comments

What problem or use case are you trying to solve?

Run OpenDevin without Docker

Describe the UX of the solution you'd like

I'm curious if the Docker requirement is mandatory, or if it is possible to run it without Docker, manually.

Additional context

I want to get it to run locally, but without the docker baggage.

cocktailpeanut avatar Mar 31 '24 03:03 cocktailpeanut

I advise EXTREME caution if you try this because it might delete files or do unexpected things depending on the task you give. But if you want to try you should be able to modify the code in CommandManager. Specifically, you want to change line 9

self.shell = DockerInteractive(id="default", workspace_dir=dir, container_image=container_image)

so that it uses some other class besides DockerInteractive. A simple example might be the class

class BashInteractive:
    def execute(self, cmd: str) -> Tuple[int, str]:
        exit_code = os.system(cmd)
        return exit_code, ""

This should run the commands using system bash. The docker will still spin up and record logs when you run the backend and that might throw some errors but should be easy to comment out the code required to get rid of errors.

goudbor avatar Mar 31 '24 09:03 goudbor

As a feature request I don't think that is a priority at the moment.

goudbor avatar Mar 31 '24 09:03 goudbor

Agree--this is too dangerous. Nothing stopping OpenDevin from responding with rm -rf / 😅 Going to close this one

rbren avatar Mar 31 '24 15:03 rbren

It's actually possible to do this now, but it needs to be documented better.

neubig avatar Feb 17 '25 20:02 neubig

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Mar 20 '25 02:03 github-actions[bot]

This was fixed: https://docs.all-hands.dev/modules/usage/runtimes#local-runtime

enyst avatar Mar 20 '25 15:03 enyst