I just tried the `Create Your Docker Image approac...
# questions
b
I just tried the
Create Your Docker Image approach
described in
https://github.com/All-Hands-AI/OpenHands/blob/main/docs/usage/how-to/custom-sandbox-guide.mdx
with the goal of implementing a custom execution environment in OpenHands: 1.First, write a
Dockerfile
.
Copy code
FROM nikolaik/python-nodejs:python3.12-nodejs22
RUN mkdir -p /workspace/data
RUN pip install --no-cache-dir requests pandas
2.Build the image.
Copy code
docker build -t ghcr.io/all-hands-ai/runtime:oh_v0.51.1_custom-image_demo .
It worked. 3.Modify
config.toml
— in my case,
config.toml
only contains the following content:
Copy code
[sandbox]
base_container_image="custom-image_demo"
4.Start with
DEBUG=1 make run
. It can be seen that it detected the image I specified.However, the following error occurred:
image.png,image.png,image.png,image.png
w
I think this should be
Copy code
docker build -t custom-image_demo .
I don't see any indication that it's trying to use that image
b
Hello, in the second step, I executed the docker build command. However, I myself have designated the image name as`ghcr.io/all-hands-ai/runtime:oh_v0.51.1_custom-image_demo`, rather than
custom-image_demo
, because I found that the latter would cause the
make run
command to fail to detect the image:
Copy code
docker build -t ghcr.io/all-hands-ai/runtime:oh_v0.51.1_custom-image_demo .
Furthermore, when executing
make run
, the log indicated that my custom image was detected. However, unfortunately, an error occurred later:
w
Yeah something seems wrong here
can you open an issue on github?
✅ 1