Skip to content

question: how can I copy image between registries for multiple OS/arch ? #1557

@developer-guy

Description

@developer-guy

I noticed that the platform flag in copy command only accepts a single value, and if you specify multiple platform flags, the last one will win. So, it'd be good to support taking multiple values for the platform flag to be able to specify the exact platforms that people care about.

# will copy an image built for linux/amd64
$ crane copy --platform linux/amd64

# will copy an image built for linux/arm64
$ crane copy --platform linux/arm64

# will copy an image built for linux/amd64, it ignores linux/arm64, but it'd be copy this image for each platform.
$ crane copy --platform linux/arm64 --platform linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions