Skip to content

Commit 22ad686

Browse files
jlaflechejdolitsky
authored andcommitted
clarify push manifest spec
Signed-off-by: jlafleche <[email protected]>
1 parent 8572103 commit 22ad686

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,13 +426,17 @@ Manifest byte stream:
426426

427427
The uploaded manifest MUST reference any blobs that make up the artifact.
428428
However, the list of blobs MAY be empty.
429+
430+
The registry MUST store the manifest in the exact byte representation provided by the client.
429431
Upon a successful upload, the registry MUST return response code `201 Created`, and MUST have the following header:
430432

431433
```
432434
Location: <location>
433435
```
434436

435437
The `<location>` is a pullable manifest URL.
438+
The Docker-Content-Digest header returns the canonical digest of the uploaded blob, and MUST be equal to the client provided digest.
439+
Clients MAY ignore the value but if it is used, the client SHOULD verify the value against the uploaded blob data.
436440

437441
An attempt to pull a nonexistent repository MUST return response code `404 Not Found`.
438442

0 commit comments

Comments
 (0)