Skip to content

Commit

Permalink
clarify push manifest spec
Browse files Browse the repository at this point in the history
Signed-off-by: jlafleche <jlafleche@palantir.com>
  • Loading branch information
jlafleche committed Jul 15, 2022
1 parent 4ab4752 commit 204d4b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,13 +423,17 @@ Manifest byte stream:

The uploaded manifest MUST reference any blobs that make up the artifact.
However, the list of blobs MAY be empty.

The registry MUST store the manifest in the exact byte representation provided by the client.
Upon a successful upload, the registry MUST return response code `201 Created`, and MUST have the following header:

```
Location: <location>
```

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

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

Expand Down

0 comments on commit 204d4b4

Please sign in to comment.