-
Notifications
You must be signed in to change notification settings - Fork 148
Open
Description
Hi, I am trying to integrate E2B into the OpenHands framework to host the runtime "sandbox". I can successfully build a custom template image using my own Dockerfile; however, I encountered an error where E2B forces postprocessing scripts after the image is built. This breaks some environment setup earlier in my Dockerfile.
These scripts change the default user and workspace. I tried running post creation commands, entrypoint script, and Python SDK-based commands after the sandbox is created; however, the issue is persistent.
Here is a log of the specific commands that break my system:
[2025-07-20T18:58:26Z] Creating sandbox template
[2025-07-20T18:58:28Z] [config] [stdout]: Starting configuration script
[2025-07-20T18:58:28Z] [config] [stdout]: Enable swap
[2025-07-20T18:58:28Z] [config] [stdout]: Create default user 'user' (if doesn't exist yet)
[2025-07-20T18:58:28Z] [config] [stdout]: Adding user `user' ...
[2025-07-20T18:58:28Z] [config] [stdout]: Adding new group `user' (1000) ...
[2025-07-20T18:58:28Z] [config] [stdout]: Adding new user `user' (1000) with group `user (1000)' ...
[2025-07-20T18:58:28Z] [config] [stdout]: Creating home directory `/home/user' ...
[2025-07-20T18:58:28Z] [config] [stdout]: Copying files from `/etc/skel' ...
[2025-07-20T18:58:28Z] [config] [stdout]: Adding new user `user' to supplemental / extra groups `users' ...
[2025-07-20T18:58:28Z] [config] [stdout]: Adding user `user' to group `users' ...
[2025-07-20T18:58:28Z] [config] [stdout]: Add sudo to 'user' with no password
[2025-07-20T18:58:28Z] [config] [stdout]: passwd: password changed.
[2025-07-20T18:58:28Z] [config] [stdout]: Give 'user' ownership to /home/user
[2025-07-20T18:58:28Z] [config] [stdout]: Give 777 permission to /usr/local
[2025-07-20T18:58:29Z] [config] [stdout]: Create /code directory
[2025-07-20T18:58:29Z] [config] [stdout]: Give 777 permission to /code
[2025-07-20T18:58:29Z] [config] [stdout]: Finished configuration script
[2025-07-20T18:58:29Z] [config] [exit 0]: exit status 0
[2025-07-20T18:58:29Z] Running start command
[2025-07-20T18:58:29Z] Waiting for template to be ready
[2025-07-20T18:58:29Z] [ready cmd]: sleep 20
[2025-07-20T18:58:34Z] ...
Metadata
Metadata
Assignees
Labels
No labels