Add a describe command to get descriptors of things #656
Replies: 4 comments 5 replies
-
how about |
Beta Was this translation helpful? Give feedback.
-
The reason I didn’t suggest inspect is because docker has manifest inspect that shows the manifest and also a verbose option that changes the output including the descriptor. It does GET on the manifest and ORAS has fetch already. I was hoping that describe only shows the descriptor for manifest and blobs. Basically a check if exists HEAD without pulling content. |
Beta Was this translation helpful? Give feedback.
-
@sajayantony It is already supported using $ oras manifest fetch --descriptor ghcr.io/oras-project/oras:v0.15.1 --pretty
{
"mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
"digest": "sha256:c963603f576c9a21270ac60e5f180806f92e1de011e301fdbcf9141ae3be6662",
"size": 1079
} |
Beta Was this translation helpful? Give feedback.
-
Hm. Didn’t know. Btw Why do we need pretty option? Also is it supported in the blob commands as well? |
Beta Was this translation helpful? Give feedback.
-
Currently a client must fetch the manifest and compute the hash to actually show the descriptor. These would be just HEAD requests.
I would like to purpose a
describe
command that resolves the entity and outputs the descriptor of the given entity.This may be a manifest or a tag.
For e.g.
This can also be applied to the blobs also to check for existance without actually fetching the blob as well.
Beta Was this translation helpful? Give feedback.
All reactions