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

Commit 445e0fa

Browse files
authored
Merge pull request #146 from docker/skip-docker-config-in-dd-as-moby
2 parents b331608 + 8e15869 commit 445e0fa

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)