From 3a0bfbe1ca9db5dfdf658169a837abd2595c4f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B2=81=E4=B8=B0?= Date: Mon, 13 Jan 2020 11:19:54 +0800 Subject: [PATCH] fix legacy config media type application/octet-stream Signed-off-by: genglu --- util/imageutil/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/imageutil/config.go b/util/imageutil/config.go index 9568864a..e0d9f174 100644 --- a/util/imageutil/config.go +++ b/util/imageutil/config.go @@ -12,6 +12,7 @@ import ( "github.com/containerd/containerd/platforms" "github.com/containerd/containerd/reference" "github.com/containerd/containerd/remotes" + "github.com/containerd/containerd/remotes/docker" "github.com/moby/buildkit/util/leaseutil" digest "github.com/opencontainers/go-digest" specs "github.com/opencontainers/image-spec/specs-go/v1" @@ -152,7 +153,7 @@ func childrenConfigHandler(provider content.Provider, platform platforms.MatchCo } else { descs = append(descs, index.Manifests...) } - case images.MediaTypeDockerSchema2Config, specs.MediaTypeImageConfig: + case images.MediaTypeDockerSchema2Config, specs.MediaTypeImageConfig, docker.LegacyConfigMediaType: // childless data types. return nil, nil default: