Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Downloaded empty artifact" when oras pull from docker.io #453

Closed
codewithcheese opened this issue Jul 20, 2022 · 6 comments
Closed

"Downloaded empty artifact" when oras pull from docker.io #453

codewithcheese opened this issue Jul 20, 2022 · 6 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Milestone

Comments

@codewithcheese
Copy link

codewithcheese commented Jul 20, 2022

Hey all, I was expecting to be able to pull a docker hub image using ORAS CLI.

oras pull docker.io/library/ubuntu:latest

results in:

Downloaded empty artifact
Pulled docker.io/library/ubuntu:latest
Digest: sha256:b6b83d3c331794420340093eb706a6f152d9c1fa51b262d9bf34594887c2c7ac

With no image on disk, I would expect it to write a tar like any other mime type.

I am writing a TypeScript client to push/pull images AND artifacts and would prefer to only have a single implementation using oras for all the mime types. Don't necessarily need docker hub support, simply using it for testing an image pull.

@qweeah
Copy link
Contributor

qweeah commented Jul 21, 2022

ORAS v0.13.0 cannot be used to download an image. It will only download layers annotated with OCI image title

@shizhMSFT
Copy link
Contributor

As @qweeah has mentioned, the current oras CLI can only pull named artifacts.

In the future version of oras, we will support oras copy from a remote registry to a local OCI store or a tarball in OCI layout.

@shizhMSFT shizhMSFT added this to the future milestone Jul 21, 2022
@shizhMSFT shizhMSFT added the enhancement New feature or request label Jul 21, 2022
@FeynmanZhou
Copy link
Member

As @qweeah has mentioned, the current oras CLI can only pull named artifacts.

In the future version of oras, we will support oras copy from a remote registry to a local OCI store or a tarball in OCI layout.

Is it corresponding to this feature request?

@shizhMSFT
Copy link
Contributor

@FeynmanZhou Yes, exactly.

@yizha1 yizha1 modified the milestones: future, v1.0.0 Aug 31, 2022
@shizhMSFT shizhMSFT added the duplicate This issue or pull request already exists label Nov 2, 2022
@qweeah
Copy link
Contributor

qweeah commented Jan 20, 2023

Closing as it's already supportted in oras cp.

@qweeah
Copy link
Contributor

qweeah commented Jan 20, 2023

@codewithcheese You may build from main branch and try below commands to download a image to the downloaded folder in current working directory

oras cp docker.io/library/ubuntu:latest --to-oci-layout downloaded

This feature will be included in oras 1.0.0-rc.1 release planned for end of Jan 2023.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
No open projects
Status: Done
Development

No branches or pull requests

5 participants