Container registry supporting referrers API? #433
Replies: 1 comment 1 reply
-
Hi, thanks for your interest in SOCI! I've answered your actual question below, but I thought it would be worth highlighting that we recently added support for existing registries. If you create your SOCI index with the following, it should work with most registries.
We have an open issue to make this the default behavior so you won't need the In case you're curious, this doesn't actually use the referrers API. The technical details are here: https://github.com/opencontainers/distribution-spec/blob/main/spec.md#unavailable-referrers-api To answer your original question, the ORAS project that originally introduced the referrers API is deprecated and was replaced by an OCI working group. That group adopted the ORAS referrers API with some modification which will be released in the oci distribution spec v1.1.0. There's a release candidate that you can read at https://github.com/opencontainers/distribution-spec/blob/v1.1.0-rc1/spec.md Of particular interest to your question, the referrers API was moved to
Since the spec is still a release candidate, support across registry implementations is mixed so for now we'd recommend using the solution I mentioned above. |
Beta Was this translation helpful? Give feedback.
-
Hi soci-snapshotter maintainers,
I’ve been playing around with the snapshotter for a little bit and I’m interested in trying to get the snapshotter working with a local container registry implementing the referrers API so that I don’t have to pass in the index digest for rpull commands.
I followed the instructions in GETTING_STARTED.md and they all succeeded. Then I poked around on my locally running container registry to see if I could find the referrers link between my container image and the soci index of that container. It looks like the registry mentioned in the docs (ghcr.io/oci-playground/registry:v3.0.0-alpha.1) supports the (a?) referrers API:
And I have the image and soci index digest available locally:
But when I query the referrers API, I get back a 404 error:
I tried a few other things as well, including:
Unfortunately, none of those worked for me.
Given that the soci-snapshotter code supports fetching the digest of the soci index using the referrers API, I assume that you’ve found and used a container registry that supports the referrers API. Could you let me know where I can find one?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions