Skip to content

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

Closed

Description

@codewithcheese

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.

Activity

  1. qweeah commented on Jul 21, 2022

    @qweeah
    Contributor

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

  2. shizhMSFT commented on Jul 21, 2022

    @shizhMSFT
    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.

  3. added this to the future milestone on Jul 21, 2022
  4. added
    enhancement
    on Jul 21, 2022
  5. FeynmanZhou commented on Jul 21, 2022

    @FeynmanZhou
    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?

  6. shizhMSFT commented on Jul 21, 2022

    @shizhMSFT
    Contributor

    @FeynmanZhou Yes, exactly.

  7. modified the milestones: future, v1.0.0 on Aug 31, 2022
  8. added
    duplicate
    on Nov 2, 2022
  9. qweeah commented on Jan 20, 2023

    @qweeah
    Contributor

    Closing as it's already supportted in oras cp.

  10. qweeah commented on Jan 20, 2023

    @qweeah
    Contributor

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateenhancement

    Type

    No type

    Projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions