Retrieve blob Run in API Explorer
Download the blob identified by digest from the registry.
Blobs include image layers and configuration objects. Clients must use the digest from the manifest to retrieve a blob.
This endpoint may return a 307 Temporary Redirect
to a CDN or storage location. Clients must follow the redirect to obtain the actual blob content.
The blob content is typically a gzipped tarball (for layers) or JSON (for configs). The MIME type is usually application/octet-stream
.
GET
/v2/{name}/blobs/{digest}
cURL
# GET (download) a blob
curl -L \
-H "Authorization: Bearer $TOKEN" \
https://registry-1.docker.io/v2/library/ubuntu/blobs/sha256:abc123... \
-o layer.tar.gz
curl \
--request GET 'https://registry-1.docker.io/v2/library/ubuntu/blobs/sha256:abc123def456...' \
--header "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6..."
Response examples (200)
<binary data not shown>