Skip to content
Discussion options

You must be logged in to vote

You can use the Harbor v2 API to retrieve the manifest of an image; the response includes details about the image layers.

curl -u admin:Harbor12345 -k https://myharbor/v2/library/harbor-core/manifests/dev
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"config": {
"mediaType": "application/vnd.docker.container.image.v1+json",
"size": 5450,
"digest": "sha256:f1bdf3ae5ef356228891f505edd58a8a90a7c5fd29fca8a10705101487486490"
},
"layers": [
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 16313808,
"digest": "sha256:8448683fd5fb8663180725e71cd89bd3542d6a07b7400b3f77ca146b9a3a96b5"
},
{
"mediaType": "application/vnd.docker.i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wy65701436
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants