diff --git a/pkg/storage/common/common.go b/pkg/storage/common/common.go index e28239d59..b885decab 100644 --- a/pkg/storage/common/common.go +++ b/pkg/storage/common/common.go @@ -17,6 +17,8 @@ import ( imeta "github.com/opencontainers/image-spec/specs-go" ispec "github.com/opencontainers/image-spec/specs-go/v1" + dockerList "github.com/distribution/distribution/v3/manifest/manifestlist" + docker "github.com/distribution/distribution/v3/manifest/schema2" zerr "zotregistry.dev/zot/errors" zcommon "zotregistry.dev/zot/pkg/common" "zotregistry.dev/zot/pkg/extensions/monitoring" @@ -797,7 +799,9 @@ func getBlobDescriptorFromManifest(imgStore storageTypes.ImageStore, repo string func IsSupportedMediaType(mediaType string) bool { return mediaType == ispec.MediaTypeImageIndex || - mediaType == ispec.MediaTypeImageManifest + mediaType == ispec.MediaTypeImageManifest || + mediaType == docker.MediaTypeManifest || + mediaType == dockerList.MediaTypeManifestList } func IsNonDistributable(mediaType string) bool {