Skip to content

Commit 886f713

Browse files
authored
Fix: Compatible with older docker version for --add-host (OpenHands#1604)
Signed-off-by: ifuryst <[email protected]>
1 parent a58f41a commit 886f713

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ docker run \
6464
-v $WORKSPACE_BASE:/opt/workspace_base \
6565
-v /var/run/docker.sock:/var/run/docker.sock \
6666
-p 3000:3000 \
67-
--add-host host.docker.internal=host-gateway \
67+
--add-host host.docker.internal:host-gateway \
6868
ghcr.io/opendevin/opendevin:0.5
6969
```
7070

docs/modules/usage/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ docker run \
8484
-v $WORKSPACE_BASE:/opt/workspace_base \
8585
-v /var/run/docker.sock:/var/run/docker.sock \
8686
-p 3000:3000 \
87-
--add-host host.docker.internal=host-gateway \
87+
--add-host host.docker.internal:host-gateway \
8888
ghcr.io/opendevin/opendevin:0.5
8989
```
9090

docs/modules/usage/llms/localLLMs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Use the instructions [here](../intro) to start OpenDevin using Docker.
3232
But when running `docker run`, you'll need to add a few more arguments:
3333

3434
```bash
35-
--add-host host.docker.internal=host-gateway \
35+
--add-host host.docker.internal:host-gateway \
3636
-e LLM_API_KEY="ollama" \
3737
-e LLM_BASE_URL="http://host.docker.internal:11434" \
3838
```
@@ -44,7 +44,7 @@ For example:
4444
export WORKSPACE_BASE=$(pwd)/workspace
4545

4646
docker run \
47-
--add-host host.docker.internal=host-gateway \
47+
--add-host host.docker.internal:host-gateway \
4848
-e SANDBOX_USER_ID=$(id -u) \
4949
-e LLM_API_KEY="ollama" \
5050
-e LLM_BASE_URL="http://host.docker.internal:11434" \

docs/modules/usage/troubleshooting/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ See our guide for [local LLMs](llms/localLLMs) for more information.
8989

9090
- Check your `LLM_BASE_URL`
9191
- Check that ollama is running OK
92-
- Make sure you're using `--add-host host.docker.internal=host-gateway` when running in docker
92+
- Make sure you're using `--add-host host.docker.internal:host-gateway` when running in docker
9393

9494
## 404 Resource not found
9595
### Symptoms

docs/src/components/Code/Code.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export WORKSPACE_BASE=$(pwd)/workspace`;
1414
-v $WORKSPACE_BASE:/opt/workspace_base \\
1515
-v /var/run/docker.sock:/var/run/docker.sock \\
1616
-p 3000:3000 \\
17-
--add-host host.docker.internal=host-gateway \\
17+
--add-host host.docker.internal:host-gateway \\
1818
ghcr.io/opendevin/opendevin:0.5`;
1919

2020
return (

0 commit comments

Comments
 (0)