Get image manifest Run in API Explorer
Fetch the manifest identified by name
and reference
, where reference
can be a tag (e.g., latest
) or a digest (e.g., sha256:...
).
The manifest contains metadata about the image, including configuration and layer digests. It is required for pulling images from the registry.
This endpoint requires authentication. Use the Authorization: Bearer <token>
header.
Headers
-
Media type(s) the client supports for the manifest.
The registry supports the following media types:
- application/vnd.docker.distribution.manifest.v2+json
- application/vnd.docker.distribution.manifest.list.v2+json
- application/vnd.oci.image.manifest.v1+json
- application/vnd.oci.image.index.v1+json
GET
/v2/{name}/manifests/{reference}
cURL
# GET a manifest (by tag or digest)
curl -H "Authorization: Bearer $TOKEN" \
-H "Accept: application/vnd.docker.distribution.manifest.v2+json" \
https://registry-1.docker.io/v2/library/ubuntu/manifests/latest
curl \
--request GET 'https://registry-1.docker.io/v2/library/ubuntu/manifests/latest' \
--header "Authorization: string" \
--header "Accept: string"
Response examples (200)
{
"config": {
"size": 7023,
"digest": "sha256:123456abcdef...",
"mediaType": "application/vnd.docker.container.image.v1+json"
},
"layers": [
{
"size": 32654,
"digest": "sha256:abcdef123456...",
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip"
},
{
"size": 16724,
"digest": "sha256:7890abcdef12...",
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip"
}
],
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"schemaVersion": 2
}