File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,32 @@ See [the reference docs](/reference/cli/docker/model/).
112112
113113Once 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
118142Docker Model management endpoints :
119143
You can’t perform that action at this time.
0 commit comments