diff --git a/proxy/extractor.go b/proxy/extractor.go index 6416163..bb2e39b 100644 --- a/proxy/extractor.go +++ b/proxy/extractor.go @@ -225,7 +225,7 @@ func (ex *Extractor) SaveToC() (res *ApiResponse, err error) { return nil, errors.Wrapf(err, "failed to cache ToC") } - if desc.MediaType == types.DockerManifestSchema2 { + if desc.MediaType == types.DockerManifestSchema2 || desc.MediaType == types.OCIManifestSchema1 { // single manifest image // "application/vnd.docker.distribution.manifest.v2+json" diff --git a/util/convertor.go b/util/convertor.go index 76f633f..d068504 100644 --- a/util/convertor.go +++ b/util/convertor.go @@ -327,7 +327,7 @@ func (c *Convertor) ToStarlightImage() (err error) { return errors.Wrapf(err, "failed to read image") } - if imgDesc.MediaType == types.DockerManifestSchema2 { + if imgDesc.MediaType == types.DockerManifestSchema2 || imgDesc.MediaType == types.OCIManifestSchema1 { // single manifest image // "application/vnd.docker.distribution.manifest.v2+json" var (