Skip to content

Commit cd5757d

Browse files
ArthurFlagkiview
andauthored
DMR: add Docker CE base urls (#22760)
Co-authored-by: Kevin Wittek <[email protected]>
1 parent 0abb2cf commit cd5757d

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

content/manuals/ai/model-runner.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,32 @@ See [the reference docs](/reference/cli/docker/model/).
112112

113113
Once the feature is enabled, new API endpoints are available under the following base URLs:
114114

115+
{{< tabs >}}
116+
{{< tab name="Docker Desktop">}}
117+
115118
- From containers: `http://model-runner.docker.internal/`
116-
- From host processes: `http://localhost:12434/`, assuming you have enabled TCP host access on default port 12434.
119+
- From host processes: `http://localhost:12434/`, assuming TCP host access is
120+
enabled on the default port (12434).
121+
122+
{{< /tab >}}
123+
{{< tab name="Docker Engine">}}
124+
125+
- From containers: `http://172.17.0.1:12434/` (with `172.17.0.1` representing the host gateway address)
126+
- From host processes: `http://localhost:12434/`
127+
128+
> [!NOTE]
129+
> The `172.17.0.1` interface may not be available by default to containers
130+
within a Compose project.
131+
> In this case, add an `extra_hosts` directive to your Compose service YAML:
132+
>
133+
> ```yaml
134+
> extra_hosts:
135+
> - "model-runner.docker.internal:host-gateway"
136+
> ```
137+
> Then you can access the Docker Model Runner APIs at http://model-runner.docker.internal:12434/
138+
139+
{{< /tab >}}
140+
{{</tabs >}}
117141
118142
Docker Model management endpoints:
119143

0 commit comments

Comments
 (0)