Skip to content

OCI export should only put the tag into org.opencontainers.image.ref.name in index.json Β #4615

@ChristianWolf2

Description

@ChristianWolf2

I noticed the following issue while trying to use the oci exporter to export an image directly into a filesystem folder, which is used by the zot registry.

The exported index.json contains "org.opencontainers.image.ref.name":"foo/bar:1.0.0", whereas I expect it to be "org.opencontainers.image.ref.name":"1.0.0".

The property "org.opencontainers.image.ref.name" in the index.json contains the whole image name together with the tag. The zot registry expects that only the tag should be in that property, and does not accept the generated index.json.
According to the OCI spec, this property should only hold the tag, and not the complete image name together with a tag, see https://github.com/opencontainers/image-spec/blob/main/image-layout.md#indexjson-file

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