Skip to content

[Bug]: Zot Registry does not serve images with a full image name in org.opencontainers.image.ref.name #2860

Open
@ChristianWolf2

Description

@ChristianWolf2

zot version

v2.1.0

Describe the bug

Zot does not serve OCI images created with docker OCI exporter. Instead it answers with a 404 response.

The reason is that docker writes the full image name with the tag in the org.opencontainers.image.ref.name annotation in the index.json file. But according to the OCI spec this is actually allowed: https://github.com/opencontainers/image-spec/blob/5325ec48851022d6ded604199a3566254e72842a/annotations.md#:~:text=org.opencontainers.image.ref.name

See also my initial bug raised against buildkit: moby/buildkit#4615

To reproduce

  1. Build some docker image with OCI exporter: https://docs.docker.com/build/exporters/oci-docker/
    docker buildx build . --output="type=oci,tar=false,dest=/tmp/registry/foo,name=bar"
  2. Start zot registry with /tmp/registry as root
  3. Try to pull image foo:bar from registry

Expected behavior

Zot can serve images with a full image name in the org.opencontainers.image.ref.name annotation, instead of just the tag.

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-feedbackbugSomething isn't workingrm-externalRoadmap item submitted by non-maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions