From 25562e95759d20c5200ba98d0aac33cc66575ef2 Mon Sep 17 00:00:00 2001 From: "Thibault \"bui\" Koechlin" Date: Mon, 18 Jan 2021 15:25:07 +0100 Subject: [PATCH] drop the platform argument to avoid being compatible ONLY with API 1.41 (#582) --- pkg/metabase/container.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkg/metabase/container.go b/pkg/metabase/container.go index e79e1a371..2b10c1472 100644 --- a/pkg/metabase/container.go +++ b/pkg/metabase/container.go @@ -12,7 +12,6 @@ import ( "github.com/docker/docker/api/types/mount" "github.com/docker/docker/client" "github.com/docker/go-connections/nat" - v1 "github.com/opencontainers/image-spec/specs-go/v1" log "github.com/sirupsen/logrus" ) @@ -100,13 +99,8 @@ func (c *Container) Create() error { return fmt.Errorf("OS '%s' is not supported", os) } - arch := runtime.GOARCH - platform := &v1.Platform{ - Architecture: arch, - OS: os, - } log.Infof("creating container '%s'", c.Name) - resp, err := c.CLI.ContainerCreate(ctx, dockerConfig, hostConfig, nil, platform, c.Name) + resp, err := c.CLI.ContainerCreate(ctx, dockerConfig, hostConfig, nil, nil, c.Name) if err != nil { return fmt.Errorf("failed to create container : %s", err) }