unsupported manifest type: application/vnd.oci.image.manifest.v1+json
denverdino opened this issue · 7 comments
denverdino commented
Bug Report
Type: bug report
What happened
I got such error when syncing knative images from gcr.io
ERRO[2022-06-02 15:30:19] Get blob info from gcr.io/knative-releases/knative.dev/client/cmd/kn:sha256-7954fe11a6dce1ec92f77355f2d8438dc39a0e34195e294becb9f70631397ca3.sbom error: unsupported manifest type: application/vnd.oci.image.manifest.v1+json
What you expected to happen
How to reproduce it (as minimally and precisely as possible)
Anything else we need to know?
Environment
- image-syncer version:
- OS (e.g.
cat /etc/os-release
): - Registry version (e.g.
habor
): - Others:
denverdino commented
In pkg/sync/manifest.go
Add following code snippet
} else if t == v1.MediaTypeImageManifest {
manifestInfo, err := manifest.OCI1FromManifest(m)
if err != nil {
return nil, err
}
manifestInfoSlice = append(manifestInfoSlice, manifestInfo)
return manifestInfoSlice, nil
}
huapox commented
+1
huapox commented
INFO[2023-02-01 17:43:03] Get manifest from registry.hub.docker.com/library/ubuntu:20.04
ERRO[2023-02-01 17:43:03] Get manifest info from registry.hub.docker.com/library/ubuntu:20.04 error: unsupported manifest type: application/vnd.oci.image.index.v1+jsonStart to retry sync tasks, please wait ...
INFO[2023-02-01 17:43:03] Get manifest from registry.hub.docker.com/library/ubuntu:20.04
ERRO[2023-02-01 17:43:03] Get manifest info from registry.hub.docker.com/library/ubuntu:20.04 error: unsupported manifest type: application/vnd.oci.image.index.v1+json
Finished, 1 sync tasks failed, 0 tasks generate failed
lingdie commented
+1
huapox commented
htlabc commented
lujiajing1126 commented
Done in #112