From a00fd960a5d67a21b87ce7f055d9ae89f1603345 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 9 Aug 2023 21:21:05 +0300 Subject: [PATCH] Fix "Unknown server OS" for Docker container `--device` option (#1957) The `--device` option would do platform-dependent validation, but the OS was not passed as an argument. When a user added the `--device` option to the container, it would result in a "Unknown server OS" error. --- pkg/container/docker_run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/container/docker_run.go b/pkg/container/docker_run.go index 6eab90d..cf58aee 100644 --- a/pkg/container/docker_run.go +++ b/pkg/container/docker_run.go @@ -351,7 +351,7 @@ func (cr *containerReference) mergeContainerConfigs(ctx context.Context, config } } - containerConfig, err := parse(flags, copts, "") + containerConfig, err := parse(flags, copts, runtime.GOOS) if err != nil { return nil, nil, fmt.Errorf("Cannot process container options: '%s': '%w'", input.Options, err) }