Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
remove hard coded platform
Browse files Browse the repository at this point in the history
so that we are compatible with all engines and we keep the previous
behaviour

Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>
  • Loading branch information
eunomie committed Oct 21, 2021
1 parent 52d5ac8 commit 5e4b350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/containerizedsnyk.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func (d *dockerSnykProvider) newCommand(envVars []string, arg ...string) (string
args = append(args, arg...)
config, hostConfig := containerConfigs(envVars, bindings, args)

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

0 comments on commit 5e4b350

Please # to comment.