snagles / docker-registry-manager

Web front end for managing multiple private docker registries
Apache License 2.0
366 stars 58 forks source link

[bug/feature] Support OCI manifests #197

Open Arano-kai opened 4 years ago

Arano-kai commented 4 years ago

Currently OCI manifests spam in log:

level=error msg="Failed to retrieve manifest information for http://localhost:5000" Error="Get \"http://localhost:5000/v2/<name>/manifests/latest\": http: non-successful response (status=404 body=\"{\\\"errors\\\":[{\\\"code\\\":\\\"MANIFEST_UNKNOWN\\\",\\\"message\\\":\\\"OCI manifest found, but accept header does not support OCI manifests\\\"}]}\\n\")" Repository Name=<name> Tag Name=latest file=allregistries.go line=71 source=app

To fix/support that, the Accept: application/vnd.oci.image.manifest.v1+json is required. OCI manifest is same as vnd.docker.distribution.manifest.v2+json.

draeath commented 1 year ago

I started to dig into this myself.

Looks like this component is third-party. See app/vendor/.../schema2 (at this time, see manifest.go:15)

Since the actual files are in this repo, we can probably kluge this, but I'm sure that's not the right way to handle it.

I think upstream has 'fixed' this, but I doubt it's as simple as bumping the version.


This project appears dead. There hasn't been a commit on any branch in 4 years, and nobody seems to have any public forks with changes.