All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
37.95k stars 4.29k forks source link

Provide a docker-compose.yml file #5392

Open s-celles opened 1 day ago

s-celles commented 1 day ago

Hello,

Maybe providing a docker-compose.yml could simplify installation.

I tried this way (under Windows)

 services:
    openhands:
        stdin_open: true
        tty: true
        pull_policy: always
        environment:
            - SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.14-nikolaik
            - LOG_ALL_EVENTS=true
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
        ports:
            - 3000:3000
        extra_hosts:
            - host.docker.internal:host-gateway
        container_name: openhands-app
        image: docker.all-hands.dev/all-hands-ai/openhands:0.14

but docker compose up raised

openhands-app-  | exec /app/entrypoint.sh: no such file or directory

But manually running

docker pull docker.all-hands.dev/all-hands-ai/runtime:0.14-nikolaik
docker run -it --pull=always -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.14-nikolaik -e LOG_ALL_EVENTS=true -v /var/run/docker.sock:/var/run/docker.sock -p 3000:3000 --add-host host.docker.internal:host-gateway --name openhands-app docker.all-hands.dev/all-hands-ai/openhands:0.14

works... it just need removing "\" at end of line (but I currently have no Anthropic credit for API usage ;-( )

Kind regards

dannypaz commented 1 day ago

@s-celles I used the docker compose file above on mac and had no issues. It looks to be a specific windows file system issue that can be solved by configuring line endings in git and recloning the repo. Give that a try and see if it helps

BradKML commented 1 hour ago

Could you make one that includes DEBUG flags, and are Ollama/OpenRouter friendly?