Skip to content

Commit

Permalink
feat: add support for docker images
Browse files Browse the repository at this point in the history
Issue project-zot#724

Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Oct 16, 2024
1 parent 8820408 commit e6f5117
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/storage/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e6f5117

Please sign in to comment.