You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,8 @@ For relevant details and a history leading up to this specification, please see
48
48
49
49
#### Legacy Docker support HTTP headers
50
50
51
-
Because of the origins of this specification, the client MAY encounter Docker-specific headers, such as `Docker-Content-Digest`, or `Docker-Distribution-API-Version`.
52
-
These headers are OPTIONAL and clients SHOULD NOT depend on them.
51
+
Because of the origins of this specification, the client MAY encounter Docker-specific headers, such as `Docker-Distribution-API-Version`.
52
+
Unless documented elsewhere in the spec, these headers are OPTIONAL and clients SHOULD NOT depend on them.
53
53
54
54
#### Legacy Docker support error codes
55
55
@@ -174,9 +174,9 @@ If the manifest has a `mediaType` field, clients SHOULD reject unless the `media
174
174
For more information on the use of `Accept` headers and content negotiation, please see [Content Negotiation](./content-negotiation.md) and [RFC7231](https://www.rfc-editor.org/rfc/rfc7231#section-3.1.1.1).
175
175
176
176
A GET request to an existing manifest URL MUST provide the expected manifest, with a response code that MUST be `200 OK`.
177
-
A successful response SHOULD contain the digest of the uploaded blob in the header `Docker-Content-Digest`.
177
+
A successful response MUST contain the digest of the uploaded blob in the header `Docker-Content-Digest`.
178
178
179
-
The `Docker-Content-Digest` header, if present on the response, returns the canonical digest of the uploaded blob which MAY differ from the provided digest.
179
+
The `Docker-Content-Digest` header, if present on the response, returns the digest of the uploaded blob which MAY differ from the provided digest.
180
180
If the digest does differ, it MAY be the case that the hashing algorithms used do not match.
181
181
See [Content Digests](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md#digests) <sup>[apdx-3](#appendix)</sup> for information on how to detect the hashing algorithm in use.
182
182
Most clients MAY ignore the value, but if it is used, the client MUST verify the value matches the returned manifest.
@@ -192,7 +192,7 @@ To pull a blob, perform a `GET` request to a URL in the following form:
192
192
`<name>` is the namespace of the repository, and `<digest>` is the blob's digest.
193
193
194
194
A GET request to an existing blob URL MUST provide the expected blob, with a response code that MUST be `200 OK`.
195
-
A successful response SHOULD contain the digest of the uploaded blob in the header `Docker-Content-Digest`.
195
+
A successful response MUST contain the digest of the uploaded blob in the header `Docker-Content-Digest`.
196
196
If present, the value of this header MUST be a digest matching that of the response body.
197
197
Most clients MAY ignore the value, but if it is used, the client MUST verify the value matches the returned response body.
198
198
Clients SHOULD verify that the response body matches the requested digest.
@@ -210,8 +210,12 @@ In order to verify that a repository contains a given manifest or blob, make a `
0 commit comments