Skip to content

Store full image reference during oras backup #1893

@AustinAbro321

Description

@AustinAbro321

What is the version of your ORAS CLI

1.3.0

What would you like to be added?

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestspec requiredIssues that require specifications

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions