From 2d3131f6796a99ab20149a490df4794d87238c40 Mon Sep 17 00:00:00 2001 From: ArthurFlag Date: Wed, 4 Jun 2025 07:54:24 +0200 Subject: [PATCH 1/4] add docker CE base urls --- content/manuals/ai/model-runner.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/content/manuals/ai/model-runner.md b/content/manuals/ai/model-runner.md index a9d11ee1008e..a09b3b38709a 100644 --- a/content/manuals/ai/model-runner.md +++ b/content/manuals/ai/model-runner.md @@ -112,8 +112,31 @@ See [the reference docs](/reference/cli/docker/model/). Once the feature is enabled, new API endpoints are available under the following base URLs: +{{< tabs >}} +{{< tab name="Docker Desktop">}} + - From containers: `http://model-runner.docker.internal/` -- From host processes: `http://localhost:12434/`, assuming you have enabled TCP host access on default port 12434. +- From host processes: `http://localhost:12434/`, assuming TCP host access is + enabled on the default port (12434). + +{{< /tab >}} +{{< tab name="Docker CE">}} + +- From containers: `http://172.17.0.1:12434/` +- From host processes: `http://localhost:12434/` + +> [!NOTE] +> The `172.17.0.1` interface may not be available by default to Compose containers. +> In this case, add an `extra_hosts` directive to your Compose service YAML: +> +> ```yaml +> extra_hosts: +> - "model-runner.docker.internal:host-gateway" +> ``` +> Then you can access the Docker Model Runner APIs at http://model-runner.docker.internal:12434/ + +{{< /tab >}} +{{}} Docker Model management endpoints: From 2bcdfa4f2d5f487364556b00cb8457923f72bf9f Mon Sep 17 00:00:00 2001 From: Arthur Date: Wed, 4 Jun 2025 10:02:49 +0200 Subject: [PATCH 2/4] Update content/manuals/ai/model-runner.md Co-authored-by: Kevin Wittek --- content/manuals/ai/model-runner.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/manuals/ai/model-runner.md b/content/manuals/ai/model-runner.md index a09b3b38709a..16f8a238e58b 100644 --- a/content/manuals/ai/model-runner.md +++ b/content/manuals/ai/model-runner.md @@ -122,7 +122,7 @@ Once the feature is enabled, new API endpoints are available under the following {{< /tab >}} {{< tab name="Docker CE">}} -- From containers: `http://172.17.0.1:12434/` +- From containers: `http://172.17.0.1:12434/` (with `172.17.0.1` representing the host gateway address) - From host processes: `http://localhost:12434/` > [!NOTE] From eebe0b1d6e633a0e54390eb818d139f1765e91dd Mon Sep 17 00:00:00 2001 From: Arthur Date: Wed, 4 Jun 2025 10:02:56 +0200 Subject: [PATCH 3/4] Update content/manuals/ai/model-runner.md Co-authored-by: Kevin Wittek --- content/manuals/ai/model-runner.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/manuals/ai/model-runner.md b/content/manuals/ai/model-runner.md index 16f8a238e58b..0041765cf3f2 100644 --- a/content/manuals/ai/model-runner.md +++ b/content/manuals/ai/model-runner.md @@ -126,7 +126,8 @@ Once the feature is enabled, new API endpoints are available under the following - From host processes: `http://localhost:12434/` > [!NOTE] -> The `172.17.0.1` interface may not be available by default to Compose containers. +> The `172.17.0.1` interface may not be available by default to containers + within a Compose project. > In this case, add an `extra_hosts` directive to your Compose service YAML: > > ```yaml From 134c4ce29b568690ecb30a6d785695fdea48e86a Mon Sep 17 00:00:00 2001 From: ArthurFlag Date: Wed, 4 Jun 2025 10:30:31 +0200 Subject: [PATCH 4/4] term update --- content/manuals/ai/model-runner.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/manuals/ai/model-runner.md b/content/manuals/ai/model-runner.md index 0041765cf3f2..279336575d95 100644 --- a/content/manuals/ai/model-runner.md +++ b/content/manuals/ai/model-runner.md @@ -120,7 +120,7 @@ Once the feature is enabled, new API endpoints are available under the following enabled on the default port (12434). {{< /tab >}} -{{< tab name="Docker CE">}} +{{< tab name="Docker Engine">}} - From containers: `http://172.17.0.1:12434/` (with `172.17.0.1` representing the host gateway address) - From host processes: `http://localhost:12434/`