Skip to content

Support pulling an OCI artifact/image from registry to a local OCI archive #1160

Closed

Description

@FeynmanZhou

What is the version of your ORAS CLI

v1.1.0

What would you like to be added?

We have seen multiple ORAS users who wanted to pull OCI artifact or container images from a remote registry to a local OCI archive or an OCI layout. oras copy has options to pull the subject/referrer from remote registry to OCI layout (or from OCI layout to registry).

However, Pull is commonly understood but Copy is an extra cognitive step for most of the new ORAS users. We need to design and provide an intuitive way to enable users pull an OCI artifact/image from registry to a local OCI archive or an OCI layout.

Why is this needed for ORAS?

In order to provide a natural experience of pulling content from registry to local and make the design principle conforms to users’ default habits.

We received several ORAS user requests on this feature. Related discussion: https://cloud-native.slack.com/archives/CJ1KHJM5Z/p1697701836678159?thread_ts=1697645768.389369&cid=CJ1KHJM5Z

Are you willing to submit PRs to contribute to this feature?

  • Yes, I am willing to implement it.

Activity

  1. added
    enhancement
    triage
    on Nov 1, 2023
  2. removed
    triage
    on Nov 14, 2023
  3. added this to the v1.3.0 milestone on Nov 14, 2023
  4. shizhMSFT commented on Mar 14, 2024

    @shizhMSFT
    Contributor

    In terms of local OCI archive, does it mean a .tar tarball, a gzip one .tar.gz, or simply a .zip file?

    What if there is already an existing OCI archive? For example pulling a bar:latest image to foo.tar, which contains foo:latest. Will it overwrite or store both foo:latest and bar:latest in a single foo.tar file?

  5. shizhMSFT commented on Mar 14, 2024

    @shizhMSFT
    Contributor

    Since oras pull is about pulling extracted artifact files, do we need a new command like oras export or oras save or oras dump for pulling an image from registry to a local archive?

  6. shizhMSFT commented on Mar 14, 2024

    @shizhMSFT
    Contributor

    Or consider something like oras pull --output-oci-layout <file_path>.

  7. added
    spec required
    on Mar 14, 2024
  8. fsdrw08 commented on May 11, 2024

    @fsdrw08

    maybe oras save, just like what docker/podman does, but also need to add --format flag like podman to save the image as oci-archive

  9. shizhMSFT commented on Jul 24, 2024

    @shizhMSFT
    Contributor
  10. modified the milestones: v1.3.0, v1.4.0 on Jul 24, 2024
  11. added
    duplicate
    on Jul 24, 2024
  12. modified the milestones: v1.4.0, v1.3.0 on Jul 24, 2024
  13. linked a pull request that will close this issuedocs: backup and restore specification #1610on Jun 10, 2025
  14. Wwwsylvia commented on Jul 8, 2025

    @Wwwsylvia
    Member

    Reopening this issue as the implementation is not yet complete.

  15. Wwwsylvia commented on Aug 5, 2025

    @Wwwsylvia
    Member

    Closed via #1790 and #1792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateenhancementspec required

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions