You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Store full image reference during oras backup #1893
I would like the full image reference to be stored in the image during oras backup.
I can see a few ways of accomplishing this:
We could add the entire image reference to org.opencontainers.image.title.
If we have an appetite for breaking changes, we could simply add the entire image reference to org.opencontainers.image.ref.name
We could add the tag to org.opencontainers.image.ref.name and the base name to org.opencontainers.image.base.name
Why is this needed for ORAS?
As a maintainer of an air-gap packaging tool called Zarf, I would like Zarf to be able to automatically determine the name of images stored in image tars that my user's add to their package. The docker save command for instance always stores the full image reference under io.containerd.image.name so even if users have images from 10 different repositories, Zarf will know the reference for each when it pushes these images to the air-gap registry.
I would be happy to implement this, however I do not know which annotation strategy the oras project would like to use.
Are you willing to submit PRs to contribute to this feature?
Yes, I am willing to implement it.
Reacted by Xiaoxuan Wang, Feynman Zhou and Brandt Keller
I went with a simple solution in #1904 of only adding the annotation during backup. This is good enough for my purposes, and to close this issue.
I am curious if there should be a broader stance by oras. As a consumer of oras-go it seems like functions like oras.Copy() expect the entire reference under org.opencontainers.image.ref.name, however this doesn't align with oras backup
Activity
wangxiaoxuan273 commentedon Nov 5, 2025
@shizhMSFT @Wwwsylvia @sajayantony Maintainers, please take a look. cc: @FeynmanZhou
This issue should be marked with "feature request".
shizhMSFT commentedon Nov 5, 2025
@TerryHowe @FeynmanZhou It is a sub scenario of backing up / restoring multiple repositories across registries.
TerryHowe commentedon Nov 5, 2025
Interesting alternatives proposed.
To review the alternatives I attempted:
One other alternative I was going to look at is add an SBOM to the backup that would correlate the images to the repository or registry/repository.
Pretty much a duplicate of #730 but this is a smaller subset of the problem in #730
FeynmanZhou commentedon Nov 6, 2025
Sounds like a valid scenario! @AustinAbro321 thanks for proposing this. We will assign this issue to you.
I personally vote for adding the entire image reference to
org.opencontainers.image.title. This looks like more consistent with the OCI image spec.AustinAbro321 commentedon Nov 13, 2025
I went with a simple solution in #1904 of only adding the annotation during backup. This is good enough for my purposes, and to close this issue.
I am curious if there should be a broader stance by oras. As a consumer of oras-go it seems like functions like oras.Copy() expect the entire reference under
org.opencontainers.image.ref.name, however this doesn't align withoras backupgithub-actions commentedon Jan 13, 2026
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
github-actions commentedon Mar 20, 2026
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
github-actions commentedon May 22, 2026
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.