瀏覽代碼

Fix: Compatible with older docker version for --add-host (#1604)

Signed-off-by: ifuryst <ifuryst@gmail.com>
Leo 1 年之前
父節點
當前提交
886f713e4c

+ 1 - 1
README.md

@@ -64,7 +64,7 @@ docker run \
     -v $WORKSPACE_BASE:/opt/workspace_base \
     -v /var/run/docker.sock:/var/run/docker.sock \
     -p 3000:3000 \
-    --add-host host.docker.internal=host-gateway \
+    --add-host host.docker.internal:host-gateway \
     ghcr.io/opendevin/opendevin:0.5
 ```
 

+ 1 - 1
docs/modules/usage/intro.mdx

@@ -84,7 +84,7 @@ docker run \
     -v $WORKSPACE_BASE:/opt/workspace_base \
     -v /var/run/docker.sock:/var/run/docker.sock \
     -p 3000:3000 \
-    --add-host host.docker.internal=host-gateway \
+    --add-host host.docker.internal:host-gateway \
     ghcr.io/opendevin/opendevin:0.5
 ```
 

+ 2 - 2
docs/modules/usage/llms/localLLMs.md

@@ -32,7 +32,7 @@ Use the instructions [here](../intro) to start OpenDevin using Docker.
 But when running `docker run`, you'll need to add a few more arguments:
 
 ```bash
---add-host host.docker.internal=host-gateway \
+--add-host host.docker.internal:host-gateway \
 -e LLM_API_KEY="ollama" \
 -e LLM_BASE_URL="http://host.docker.internal:11434" \
 ```
@@ -44,7 +44,7 @@ For example:
 export WORKSPACE_BASE=$(pwd)/workspace
 
 docker run \
-    --add-host host.docker.internal=host-gateway \
+    --add-host host.docker.internal:host-gateway \
     -e SANDBOX_USER_ID=$(id -u) \
     -e LLM_API_KEY="ollama" \
     -e LLM_BASE_URL="http://host.docker.internal:11434" \

+ 1 - 1
docs/modules/usage/troubleshooting/troubleshooting.md

@@ -89,7 +89,7 @@ See our guide for [local LLMs](llms/localLLMs) for more information.
 
 - Check your `LLM_BASE_URL`
 - Check that ollama is running OK
-- Make sure you're using `--add-host host.docker.internal=host-gateway` when running in docker
+- Make sure you're using `--add-host host.docker.internal:host-gateway` when running in docker
 
 ## 404 Resource not found
 ### Symptoms

+ 1 - 1
docs/src/components/Code/Code.tsx

@@ -14,7 +14,7 @@ export WORKSPACE_BASE=$(pwd)/workspace`;
     -v $WORKSPACE_BASE:/opt/workspace_base \\
     -v /var/run/docker.sock:/var/run/docker.sock \\
     -p 3000:3000 \\
-    --add-host host.docker.internal=host-gateway \\
+    --add-host host.docker.internal:host-gateway \\
     ghcr.io/opendevin/opendevin:0.5`;
 
   return (