Skip to content

support copying image referrers from index predecessor via oras copy #816

@qweeah

Description

@qweeah

Suppose we have an index directly pointing to several images with different platforms. Each image have an artifact attached as below:

graph TD
Z>v1] -..-> index
A["artifact(linux/s390x)"] -- subject --> B["image"]
C["artifact(linux/amd64)"] -- subject --> D["image"]
E["artifact(linux/arm64)"] -- subject --> F["image"]

index -- linux/s390x --> B
index -- linux/arm64 --> D
index -- linux/amd64 --> F

Loading

Using below command, oras user can copy all the images and artifacts into a new target (registry or image layout) and tag the index in the destination as v2:

oras cp $FROM:v1 $TO:v2 --recursive

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestuxUser experience related

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions