Upload blob chunk Run in API Explorer
Upload a chunk of a blob to an active upload session.
Use this method for chunked uploads, especially for large blobs or when resuming interrupted uploads.
The client sends binary data using PATCH
, optionally including a Content-Range
header.
After each chunk is accepted, the registry returns a 202 Accepted
response with:
Range
: current byte range storedDocker-Upload-UUID
: identifier for the upload sessionLocation
: URL to continue the upload or finalize withPUT
PATCH
/v2/{name}/blobs/uploads/{uuid}
cURL
# PATCH – upload a chunk (first 64 KiB)
curl -X PATCH \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @chunk-0.bin \
"https://registry-1.docker.io/v2/library/ubuntu/blobs/uploads/abc123"
curl \
--request PATCH 'https://registry-1.docker.io/v2/library/ubuntu/blobs/uploads/abc123' \
--header "Content-Type: application/octet-stream" \
--header "Authorization: Bearer eyJhbGciOi..." \
--header "Content-Range: bytes 0-65535" \
--data-binary '<binary data not shown>'
Request example
<binary data not shown>