Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Sandbox image build failed: [Errno 2] No such file or directory: 'docker' #4143

Closed
2 tasks done
tuanardouin opened this issue Oct 1, 2024 · 2 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@tuanardouin
Copy link

Is there an existing issue for the same bug?

Describe the bug

Hi, love your tool !

When launching OpenHands it builds normally, then when accessing the interface it starts another build and in the logs I get :

14:22:27 - openhands:INFO: runtime_build.py:73 - Unpacked source code directory: /tmp/tmp4riqovxj/code
14:22:27 - openhands:INFO: runtime_build.py:154 - Input base image: ghcr.io/all-hands-ai/runtime:oh_v0.9.6_image_nikolaik_s_python-nodejs_tag_python3.11-nodejs22
Skip init: True
Extra deps: None
Hash for docker build directory [/tmp/tmp4riqovxj] (contents: ['Dockerfile', 'code']): v0.9.6_ad549aa47659ffa86862f1b3298ed5aa

================ DOCKER BUILD STARTED ================










14:22:28 - openhands:ERROR: docker.py:130 - Python executable not found: [Errno 2] No such file or directory: 'docker'
14:22:28 - openhands:ERROR: runtime_build.py:381 - Sandbox image build failed: [Errno 2] No such file or directory: 'docker'

It feels likes it's on my side but I don't have lot of informations to debug.

Current OpenHands version

0.9.7

Installation and Configuration

# Get the current directory
WORKSPACE_BASE=$(pwd)

# Run the OpenHands docker container
docker run -it \
    --pull=always \
    -e SANDBOX_USER_ID=$(id -u) \
    -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \
    -v $WORKSPACE_BASE:/opt/workspace_base \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -p 3000:3000 \
    --add-host host.docker.internal:host-gateway \
    --name openhands-app-$(date +%Y%m%d%H%M%S) \
    ghcr.io/all-hands-ai/openhands:0.9.7

Model and Agent

No response

Operating System

Mac OS 14.5 (23F79)

Reproduction Steps

  1. Build and launch the tool
  2. Open the interface

Logs, Errors, Screenshots, and Additional Context

No response

@tuanardouin tuanardouin added the bug Something isn't working label Oct 1, 2024
@mamoodi
Copy link
Collaborator

mamoodi commented Oct 1, 2024

Hello. Are you following the latest README Instructions? https://github.com/All-Hands-AI/OpenHands?tab=readme-ov-file#-quick-start

Seems like you're missing some things

@tuanardouin
Copy link
Author

I saw that the version used was the 0.9 and thought that the README wasn't up-to-date, my bad.

Thank you @mamoodi it works !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants