diff --git a/pkg/oras/store.go b/pkg/oras/store.go index 84348d52a..a3abd7324 100644 --- a/pkg/oras/store.go +++ b/pkg/oras/store.go @@ -9,6 +9,7 @@ import ( orascontent "github.com/deislabs/oras/pkg/content" "github.com/containerd/containerd/content" + "github.com/containerd/containerd/images" "github.com/opencontainers/go-digest" ocispec "github.com/opencontainers/image-spec/specs-go/v1" "golang.org/x/sync/errgroup" @@ -64,7 +65,7 @@ func (s *hybridStore) Writer(ctx context.Context, opts ...content.WriterOpt) (co } } - if isAllowedMediaType(wOpts.Desc.MediaType, ocispec.MediaTypeImageManifest, ocispec.MediaTypeImageIndex) || s.ingester == nil { + if isAllowedMediaType(wOpts.Desc.MediaType, ocispec.MediaTypeImageManifest, ocispec.MediaTypeImageIndex, images.MediaTypeDockerSchema2Manifest, images.MediaTypeDockerSchema2ManifestList) || s.ingester == nil { cacheWriter, err := s.cache.Writer(ctx, opts...) if err != nil { return nil, err