From aaaac200296c0f28cdbcb9b970296ef57758a0bc Mon Sep 17 00:00:00 2001 From: kk <42019725+coderwangke@users.noreply.github.com> Date: Thu, 13 May 2021 14:22:51 +0800 Subject: [PATCH] Fix reference for unknown type: application/octet-stream --- unpacker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unpacker.go b/unpacker.go index 76f5d7b0c4fb..213e4b441319 100644 --- a/unpacker.go +++ b/unpacker.go @@ -35,6 +35,7 @@ import ( "github.com/containerd/containerd/snapshots" "github.com/opencontainers/go-digest" "github.com/opencontainers/image-spec/identity" + "github.com/containerd/containerd/remotes/docker" ocispec "github.com/opencontainers/image-spec/specs-go/v1" "github.com/pkg/errors" "github.com/sirupsen/logrus" @@ -328,7 +329,7 @@ func (u *unpacker) handlerWrapper( lock.Unlock() children = nonLayers - case images.MediaTypeDockerSchema2Config, ocispec.MediaTypeImageConfig: + case images.MediaTypeDockerSchema2Config, ocispec.MediaTypeImageConfig, docker.LegacyConfigMediaType: lock.Lock() l := layers[desc.Digest] lock.Unlock()