瀏覽代碼

drop the platform argument to avoid being compatible ONLY with API 1.41 (#582)

Thibault "bui" Koechlin 4 年之前
父節點
當前提交
25562e9575
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1 7
      pkg/metabase/container.go

+ 1 - 7
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)
 	}