This does not convey much information as to what happens. On the current version of dkregistry, one would hit this when trying to access s390x/ubuntu on registry-1.docker.io.
Error: Api Error: ((MANIFEST_UNKNOWN), message: OCI manifest found, but accept header does not support OCI manifests)
Caused by:
((MANIFEST_UNKNOWN), message: OCI manifest found, but accept header does not support OCI manifests)
which clearly highlight that dkregistry does not support OCI manifest.
Previously, a generic error would be returned:
This does not convey much information as to what happens. On the current version of dkregistry, one would hit this when trying to access s390x/ubuntu on registry-1.docker.io.
This change specializes the error to surface more information as to why the error is happening as described in the OCI Distribution Specification: https://github.com/opencontainers/distribution-spec/blob/main/spec.md#error-codes
In this specific case, the error would look like:
which clearly highlight that dkregistry does not support OCI manifest.