I think the image index needs a bit more clarification on how an image is intended to be processed by a runtime spec when there are multiple manifests within one image. While it is clear what is meant when there is exactly one manifest within an image or two manifests for different platform or architectures within an image, it is unclear when there are manifests for the same platform and architecture within an image. As of now, it is not forbidden.
Is it intended that there is no restriction of having multiple manifests for the same architecture and platform within an image?
Or, is it up to the runtime-spec implementation on how to handle situations like this, e.g. by adding some annotation-based selector like
podman run --select org.opencontainers.image.ref.name=myref myimage:latest
or a sub-image dressing scheme like podman run myimage:latest/myref ?
Even if this is intentional, there should be a few more sentences in the image index spec on how to handle this.
I think the image index needs a bit more clarification on how an image is intended to be processed by a runtime spec when there are multiple manifests within one image. While it is clear what is meant when there is exactly one manifest within an image or two manifests for different platform or architectures within an image, it is unclear when there are manifests for the same platform and architecture within an image. As of now, it is not forbidden.
Is it intended that there is no restriction of having multiple manifests for the same architecture and platform within an image?
Or, is it up to the runtime-spec implementation on how to handle situations like this, e.g. by adding some annotation-based selector like
podman run --select org.opencontainers.image.ref.name=myref myimage:latestor a sub-image dressing scheme like
podman run myimage:latest/myref?Even if this is intentional, there should be a few more sentences in the image index spec on how to handle this.