Update docs on why we use sandbox user (#7845)

This commit is contained in:
mamoodi
2025-04-14 11:01:35 -04:00
committed by GitHub
parent 1ff351a4f1
commit d820661592
5 changed files with 24 additions and 3 deletions

View File

@@ -47,6 +47,9 @@ docker run -it \
python -m openhands.core.main -t "write a bash script that prints hi"
```
The `-e SANDBOX_USER_ID=$(id -u)` is passed to the Docker command to ensure the sandbox user matches the host users
permissions. This prevents the agent from creating root-owned files in the mounted workspace.
## Advanced Headless Configurations
To view all available configuration options for headless mode, run the Python command with the `--help` flag.