-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
There are these possible 4 types of how DMR can be deployed: https://github.com/docker/model-cli/blob/13ea39494013b31e038b7f319fda0ba82cdaae02/commands/status.go#L77.
We can add kind in docker model status --json , as well as endpointHost.
And it would look like:
- if kind == "Docker Desktop"
- endpoint (accessible from container): "http://model-runner.docker.internal/engines/v1/"
- endpointHost: "http://localhost/exp/vDD4.40/engines/v1/" (to dial the unix socket)
- if kind == "Docker Cloud"
- endpoint (accessible from container, the gateway IP): "http://172.17.0.1:12435/engines/v1/"
- endpointHost: "http://127.0.0.1:12435/engines/v1/"
- if kind == "Docker Engine"
- endpoint (accessible from container, the gateway IP): "http://172.17.0.1:12434/engines/v1/"
- endpointHost: "http://127.0.0.1:12434/engines/v1/"
- if kind == "Docker Engine (Manual Install)" (when the CLI runs with MODEL_RUNNER_HOST)
- endpoint and endpointHost will be the same: "http://localhost:8080/engines/v1/" (MODEL_RUNNER_HOST=http://localhost:8080/)
Initially, endpoint has been added in order to be passed to the containers from the Compose stack which use Docker Model Runner.
WDYT?
Metadata
Metadata
Assignees
Labels
No labels