mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
use -it and pull=always for docker (#1769)
This commit is contained in:
parent
b028bd46bb
commit
2771328036
@ -53,6 +53,7 @@ version of Docker, `26.0.0`.
|
||||
export WORKSPACE_BASE=$(pwd)/workspace;
|
||||
|
||||
docker run \
|
||||
-it \
|
||||
--pull=always \
|
||||
-e SANDBOX_USER_ID=$(id -u) \
|
||||
-e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \
|
||||
|
||||
@ -79,6 +79,8 @@ OpenDevin runs bash commands within a Docker sandbox, so it should not affect yo
|
||||
|
||||
```
|
||||
docker run \
|
||||
-it \
|
||||
--pull=always \
|
||||
-e LLM_API_KEY \
|
||||
-e SANDBOX_USER_ID=$(id -u) \
|
||||
-e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \
|
||||
|
||||
@ -44,6 +44,8 @@ For example:
|
||||
export WORKSPACE_BASE=$(pwd)/workspace
|
||||
|
||||
docker run \
|
||||
-it \
|
||||
--pull=always \
|
||||
--add-host host.docker.internal:host-gateway \
|
||||
-e SANDBOX_USER_ID=$(id -u) \
|
||||
-e LLM_API_KEY="ollama" \
|
||||
|
||||
@ -8,6 +8,7 @@ export function Code() {
|
||||
export WORKSPACE_BASE=$(pwd)/workspace`;
|
||||
|
||||
const dockerCode = `docker run \\
|
||||
-it \\
|
||||
--pull=always \\
|
||||
-e SANDBOX_USER_ID=$(id -u) \\
|
||||
-e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \\
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user