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

Commit 5e4b350

Browse files
committed
remove hard coded platform
so that we are compatible with all engines and we keep the previous behaviour Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>
1 parent 52d5ac8 commit 5e4b350

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/provider/containerizedsnyk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func (d *dockerSnykProvider) newCommand(envVars []string, arg ...string) (string
290290
args = append(args, arg...)
291291
config, hostConfig := containerConfigs(envVars, bindings, args)
292292

293-
result, err := d.cli.Client().ContainerCreate(d.context, &config, &hostConfig, nil, &v1.Platform{Architecture: "amd64", OS: "linux"}, "")
293+
result, err := d.cli.Client().ContainerCreate(d.context, &config, &hostConfig, nil, nil, "")
294294
if err != nil {
295295
return "", nil, fmt.Errorf("cannot create container: %s", err)
296296
}

0 commit comments

Comments
 (0)