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.
This commit is contained in:
parent
8a9e4f9f38
commit
a00fd960a5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue