Add install-runner and uninstall-runner to manage Docker Model Runner#48
Add install-runner and uninstall-runner to manage Docker Model Runner#48xenoscopic merged 21 commits intodocker:mainfrom
Conversation
xenoscopic
left a comment
There was a problem hiding this comment.
Looks good like it's mostly there, some things blocked by me, I'll try to get those to you today.
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
6b81632 to
74ed2ed
Compare
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Most systems won't have NVIDIA GPUs and this behavior better aligns with what's done in Docker Desktop. Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
This commit also adds some uninstall functionality. Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Also add a mechanism to treat Docker Desktop as Moby for testing. Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
| setenv("URL", modelRunner.URL("/engines/v1/")) | ||
| } else if kind == desktop.ModelRunnerEngineKindMoby || kind == desktop.ModelRunnerEngineKindCloud { | ||
| // TODO: Find a more robust solution in Moby-like environments. | ||
| setenv("URL", "http://172.17.0.1:12434/engines/v1/") |
There was a problem hiding this comment.
Hey @glours and @ndeloof - we're trying to figure out the best way to make the DMR + Compose integration work with the standalone Docker Model Runner containers that we're now supporting on Docker CE. Since Compose projects don't attach their service containers to the host bridge network by default, using the 172.17.0.1 address doesn't work. I'm trying to figure out a more elegant solution without requiring users to change their Compose YAML. Do you have any ideas about a good convention that we could use here?
There was a problem hiding this comment.
The best idea I have at the moment is just to default to http://host.docker.internal:12434/engines/v1/ and require a host.docker.internal:host-gateway mapping for every container needing the standalone model runner.
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
847f9ca to
de7a6af
Compare
doringeman
left a comment
There was a problem hiding this comment.
Nice, thank you!
(I can't approve because it's my pull request.)
commands/uninstall-runner.go
Outdated
| }, | ||
| ValidArgsFunction: completion.NoComplete, | ||
| } | ||
| c.Flags().BoolVar(&models, "models", false, "Remove model storage") |
There was a problem hiding this comment.
nit:
| c.Flags().BoolVar(&models, "models", false, "Remove model storage") | |
| c.Flags().BoolVar(&models, "models", false, "Remove Docker Model Runner storage (docker-model-runner-models volume)") |
?
There was a problem hiding this comment.
Clarified this one a little differently since the volume name isn't guaranteed.
Co-authored-by: Dorin-Andrei Geman <doringeman@gmail.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
To try it out:
Some future enhancements:
docker model update-runnerto ensure Docker Model Runner is running the latest version.docker model install-runner.