Skip to content

Why does OCI Image Layout not match the OCI Distribution Spec paths? #1310

@JustinGrote

Description

@JustinGrote

https://github.com/opencontainers/image-spec/blob/main/image-layout.md

And related blog:
https://oras.land/blog/lightweight-cloud-registry-oras

For example, there is an index.json, but the OCI distribution spec has no concept of this. If I were to publish an OCI image layout to a static site, the OCI distribution spec is never going to hit the index.json, it's going to look for <name>/tags/list or <name>/manifest/<ref>, and fail. That's what happens in my testing anyways.

So why does this spec not create a static file for tags/list and put the manifests at their appropriate refs rather than a "centralized" index.json?

If the distribution spec was updated to look for an index.json (similar to how the nuget v3 spec works) then it would make sense, but otherwise I don't get it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions