Put image manifest Run in API Explorer
Upload an image manifest for a given tag or digest. This operation registers a manifest in a repository, allowing it to be pulled using the specified reference.
This endpoint is typically used after all layer and config blobs have been uploaded to the registry.
The manifest must conform to the expected schema and media type. For Docker image manifest schema version 2, use:
application/vnd.docker.distribution.manifest.v2+json
Requires authentication via a bearer token with push
scope for the target repository.
PUT
/v2/{name}/manifests/{reference}
cURL
# PUT a manifest (tag = latest)
curl -X PUT \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/vnd.docker.distribution.manifest.v2+json" \
--data-binary @manifest.json \
https://registry-1.docker.io/v2/library/ubuntu/manifests/latest
curl \
--request PUT 'https://registry-1.docker.io/v2/library/ubuntu/manifests/latest' \
--header "Authorization: string" \
--header "Content-Type: application/vnd.docker.distribution.manifest.v2+json"
Request example
{
"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"
}
],
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"schemaVersion": 2
}