Skip to content

Commit e8ab48c

Browse files
authored
Merge pull request opencontainers#333 from laflechejonathan/jl/clarifyPushManifest
clarify push manifest spec
2 parents 5638120 + 204d4b4 commit e8ab48c

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
@@ -423,13 +423,17 @@ Manifest byte stream:
423423

424424
The uploaded manifest MUST reference any blobs that make up the artifact.
425425
However, the list of blobs MAY be empty.
426+
427+
The registry MUST store the manifest in the exact byte representation provided by the client.
426428
Upon a successful upload, the registry MUST return response code `201 Created`, and MUST have the following header:
427429

428430
```
429431
Location: <location>
430432
```
431433

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

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

0 commit comments

Comments
 (0)