getting image manifest returns OCI Error

Bug #2007408 reported by Itzik
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
cloud-images
New
Undecided
Unassigned

Bug Description

"code":"MANIFEST_UNKNOWN","message":"OCI index found, but accept header does not support OCI indexes"

when sending in the header application/vnd.oci.image.index.v1+json I am succiding to get the manifest list from the registry - but when using application/vnd.oci.image.manifest.v1+json for example to get ubuntu:latest I failed with the error above

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Are you using the correct endpoints? It would be nice to show a reproducer for your issue here so we can better assist you with your request.

Namely, what tools (and their respective versions) are you using to fetch the image? Is that a self-written script? Would you mind sharing?

Finally, have you tried using the references given in the index you are pulling to be able to fetch the image?

Revision history for this message
Itzik (itzikreuven) wrote (last edit ):

Hi,

The endpoint I am using is Docker V2 API for manifests:
- https://registry-1.docker.io/v2/library/ubuntu/manifests/latest

The header I am sending in the request is:

Accept application/vnd.oci.image.manifest.v1+json

Since I understood that u migrated the new image manifests to oci media types (the header used to be application/vnd.docker.distribution.manifest.v2+json)
This reproduces the error I mentioned

BTW,
If I send this header to the same endpoint-

application/vnd.oci.image.index.v1+json
This returns a manifests list response as expected

Revision history for this message
Thibault (thibault-s) wrote :

hello,

I have the same issue when I try to pull the image with docker CLI (Docker version 19.03.3).
I guess the manifest is wrong since the last rebuild (19 days ago).

Thibault

Revision history for this message
Praitayini Kanakaraj (praitayini) wrote :

Hi,

I'm also seeing the following error since Feb 5 2023:
"FATAL: While performing build: conveyor failed to get: Error reading manifest 18.04 in docker.io/library/ubuntu: manifest unknown: OCI index found, but accept header does not support OCI indexes"

This happens for 20.04 as well.

Steps to reproduce
$ cat Singularity
Bootstrap: docker
From: ubuntu:20.04

$ sudo singularity build test.simg Singularity

Setup details
Singularity version 3.5.3
Docker version 20.10.17, build 100c701
Local machine: Ubuntu 20.04.4 LTS

Revision history for this message
Lun (lcheung) wrote :

I am also unable to read the manifests. Steps to reproduce:

1) TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ubuntu:pull" | jq -r .token)

2) curl -H "Accept: application/vnd.oci.image.index.v1+json" -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/ubuntu/manifests/18.04

3) Results: {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"ubuntu","Action":"pull"}]}]}

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.