Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 8e15869

Browse files
committed
fix(standalone): don't copy config if Desktop is treated as Moby
Signed-off-by: Dorin Geman <[email protected]>
1 parent 9cb94c8 commit 8e15869

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/standalone/containers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ const controllerContainerName = "docker-model-runner"
3131
// It does nothing for Desktop and Cloud engine kinds.
3232
func copyDockerConfigToContainer(ctx context.Context, dockerClient *client.Client, containerID string, engineKind types.ModelRunnerEngineKind) error {
3333
// Do nothing for Desktop and Cloud engine kinds
34-
if engineKind == types.ModelRunnerEngineKindDesktop || engineKind == types.ModelRunnerEngineKindCloud {
34+
if engineKind == types.ModelRunnerEngineKindDesktop || engineKind == types.ModelRunnerEngineKindCloud ||
35+
os.Getenv("_MODEL_RUNNER_TREAT_DESKTOP_AS_MOBY") == "1" {
3536
return nil
3637
}
3738

0 commit comments

Comments
 (0)