Explorar el Código

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

Robert Brennan hace 1 año
padre
commit
2771328036

+ 1 - 0
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 \

+ 2 - 0
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 \

+ 2 - 0
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" \

+ 1 - 0
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 \\