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

Oras Pull Manifest Using CLI #196

Closed
sowu880 opened this issue Nov 10, 2020 · 2 comments
Closed

Oras Pull Manifest Using CLI #196

sowu880 opened this issue Nov 10, 2020 · 2 comments

Comments

@sowu880
Copy link

sowu880 commented Nov 10, 2020

Since manifest stores meta data of image which is important to developers.
Is that possible add a CLI tool for just pull manifest and just pull one blob by digest?

@shizhMSFT
Copy link
Contributor

Pulling manifest and single blobs are not aimmed by ORAS CLI but possible with its golang package. Usually, those operations should be achieved by a generic registry client.

@shizhMSFT
Copy link
Contributor

shizhMSFT commented Dec 7, 2020

However, similar stuffs can be achieved by oras pull with cache #203 (resolves #193).

Since the cache also caches the manifest, you can get the manifest and individual files in the cache.

digest=$(oras pull localhost:5000/hello:latest | tail -n1 | cut -d' ' -f2)
cat "${ORAS_CACHE}/blobs/$(echo -n $digest | tr ':' '/')" | jq .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants