-
Notifications
You must be signed in to change notification settings - Fork 201
Labels
duplicateThis issue or pull request already existsThis issue or pull request already existsenhancementNew feature or requestNew feature or requestspec requiredIssues that require specificationsIssues that require specifications
Milestone
Description
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?
- Yes, I am willing to implement it.
shizhMSFT, liamwh, larstobi and kranurag7
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already existsenhancementNew feature or requestNew feature or requestspec requiredIssues that require specificationsIssues that require specifications