What is the version of your ORAS CLI
oras v1.1.0
What would you like to be added?
Had an offline discussion with @shizhMSFT and he suggests to add two commands:
oras backup (alias: snapshot, pull-image) to support saving an image from remote registry to an OCI image layout tar archive.
Usage:
oras backup --output <oci_layout_path> <reg>/<repo>[{:<tag>|@digest]}] [...]
oras restore (alias: push-image) to support pushing an image from an OCI image layout tar archive to remote registry.
Usage:
oras restore --output <reg>/<repo> <oci_layout_path>[{:<tag>|@digest]}]
Why is this needed for ORAS?
oras cp is not intuitive to use, e.g. user might use oras push to push images from an OCI layout and succeed with false positive (see #1353). Adding those two wrapper commands of oras cp can help avoid that.
Are you willing to submit PRs to contribute to this feature?
What is the version of your ORAS CLI
oras v1.1.0
What would you like to be added?
Had an offline discussion with @shizhMSFT and he suggests to add two commands:
oras backup(alias:snapshot,pull-image) to support saving an image from remote registry to an OCI image layout tar archive.oras restore(alias:push-image) to support pushing an image from an OCI image layout tar archive to remote registry.Why is this needed for ORAS?
oras cpis not intuitive to use, e.g. user might useoras pushto push images from an OCI layout and succeed with false positive (see #1353). Adding those two wrapper commands oforas cpcan help avoid that.Are you willing to submit PRs to contribute to this feature?