Open
Description
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
- 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" - Start zot registry with /tmp/registry as root
- 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