You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support pulling an OCI artifact/image from registry to a local OCI archive #1160
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.
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?
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?
Activity
shizhMSFT commentedon Mar 14, 2024
In terms of local OCI archive, does it mean a
.tartarball, a gzip one.tar.gz, or simply a.zipfile?What if there is already an existing OCI archive? For example pulling a
bar:latestimage tofoo.tar, which containsfoo:latest. Will it overwrite or store bothfoo:latestandbar:latestin a singlefoo.tarfile?shizhMSFT commentedon Mar 14, 2024
Since
oras pullis about pulling extracted artifact files, do we need a new command likeoras exportororas saveororas dumpfor pulling an image from registry to a local archive?shizhMSFT commentedon Mar 14, 2024
Or consider something like
oras pull --output-oci-layout <file_path>.fsdrw08 commentedon May 11, 2024
maybe
oras save, just like what docker/podman does, but also need to add --format flag like podman to save the image as oci-archiveshizhMSFT commentedon Jul 24, 2024
Linking
Wwwsylvia commentedon Jul 8, 2025
Reopening this issue as the implementation is not yet complete.
Wwwsylvia commentedon Aug 5, 2025
Closed via #1790 and #1792