Merge pull request #46748 from tonistiigi/containerd-platforms-normalize
builder-next: make sure worker platforms normalized for containerd
This commit is contained in:
commit
4be5b4147d
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,7 @@ import (
|
|||
ctd "github.com/containerd/containerd"
|
||||
"github.com/containerd/containerd/content/local"
|
||||
ctdmetadata "github.com/containerd/containerd/metadata"
|
||||
"github.com/containerd/containerd/platforms"
|
||||
"github.com/containerd/containerd/snapshots"
|
||||
"github.com/containerd/log"
|
||||
"github.com/docker/docker/api/types"
|
||||
|
@ -105,6 +106,11 @@ func newSnapshotterController(ctx context.Context, rt http.RoundTripper, opt Opt
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// make sure platforms are normalized moby/buildkit#4391
|
||||
for i, p := range wo.Platforms {
|
||||
wo.Platforms[i] = platforms.Normalize(p)
|
||||
}
|
||||
|
||||
wo.GCPolicy = policy
|
||||
wo.RegistryHosts = opt.RegistryHosts
|
||||
wo.Labels = getLabels(opt, wo.Labels)
|
||||
|
|
Loading…
Add table
Reference in a new issue