-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCI archive-equivalent to "RepoTags" #796
Comments
@TadCordle this can be accomplished by listing the descriptor multiple times, once per tag. Since the underlying content is the same, the duplication only occurs in the index.json and nothing else is duplicated. We (on containerd) explored a few different options here to make the OCI format compatible with Docker's, this ultimately ended up being the cleanest. The containerd export code now generates an archive which can both be loaded back into existing Docker versions (1.10+) as well as future version which will support loading the OCI archives directly. |
To be sure, are you suggesting listing the same manifest multiple times in
I've been using podman to try to test running the OCI images I'm generating, and it seems to have issues with this sort of index. Using
Using
Do you think these are issues with podman, or the |
The index looks valid, I would file an issue there as I am sure that is a case intended to work. I am not familiar with their UX though if there other expected ways to support that, supporting the archives has been tricky from a CLI UX perspective. |
Since this doesn't seem to be a problem with the spec, I'll close this for now and keep an eye on containers/podman#4646. Thanks for the help! |
Yeah this is a limitation of |
In a
docker load
-able tar, the manifest contains aRepoTags
field, which can list multiple different image references. When youdocker load
the tar,docker images
then displays the image multiple times, named with each of the tags found inRepoTags
.Is there an equivalent way to do this in an OCI archive? I see
index.json
can use anorg.opencontainers.image.ref.name
annotation, but that only accepts one image name, not a list.The text was updated successfully, but these errors were encountered: