Skip to content

πŸ™Œ OpenHands: AI-Driven Development

use -it and pull=always for docker (#1769)

Robert Brennan277132803681
diff --git a/README.md b/README.md
index 5c9acd4de3..f51795218c 100644
--- a/README.md
+++ b/README.md
@@ -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 \
diff --git a/docs/modules/usage/intro.mdx b/docs/modules/usage/intro.mdx
index be5d1eec23..a08eb6aa52 100644
--- a/docs/modules/usage/intro.mdx
+++ b/docs/modules/usage/intro.mdx
@@ -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 \
diff --git a/docs/modules/usage/llms/localLLMs.md b/docs/modules/usage/llms/localLLMs.md
index f51ea1e69f..46bae30307 100644
--- a/docs/modules/usage/llms/localLLMs.md
+++ b/docs/modules/usage/llms/localLLMs.md
@@ -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" \
diff --git a/docs/src/components/Code/Code.tsx b/docs/src/components/Code/Code.tsx
index 56ade31aaf..ce0ac27a22 100644
--- a/docs/src/components/Code/Code.tsx
+++ b/docs/src/components/Code/Code.tsx
@@ -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 \\