Skip to content

Commit f43ee1b

Browse files
authored
Merge pull request #325 from sudo-bmitch/pr-registry-vs-repository
Clarify repository vs registry terminology
2 parents 58d034e + c496de1 commit f43ee1b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ These error codes are OPTIONAL and clients SHOULD NOT depend on them.
6161
Several terms are used frequently in this document and warrant basic definitions:
6262

6363
- **Registry**: a service that handles the required APIs defined in this specification
64+
- **Repository**: a scope for API calls on a registry for a collection of content (including manifests, blobs, and tags).
6465
- **Client**: a tool that communicates with Registries
6566
- **Push**: the act of uploading blobs and manifests to a registry
6667
- **Pull**: the act of downloading blobs and manifests from a registry
@@ -180,7 +181,7 @@ If the digest does differ, it MAY be the case that the hashing algorithms used d
180181
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.
181182
Most clients MAY ignore the value, but if it is used, the client MUST verify the value against the uploaded blob data.
182183

183-
If the manifest is not found in the registry, the response code MUST be `404 Not Found`.
184+
If the manifest is not found in the repository, the response code MUST be `404 Not Found`.
184185

185186
##### Pulling blobs
186187

@@ -193,7 +194,7 @@ A GET request to an existing blob URL MUST provide the expected blob, with a res
193194
A successful response SHOULD contain the digest of the uploaded blob in the header `Docker-Content-Digest`.
194195
If present, the value of this header MUST be a digest matching that of the response body.
195196

196-
If the blob is not found in the registry, the response code MUST be `404 Not Found`.
197+
If the blob is not found in the repository, the response code MUST be `404 Not Found`.
197198

198199
A registry SHOULD support the `Range` request header in accordance with [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-range-requests).
199200

@@ -209,7 +210,7 @@ A HEAD request to an existing blob or manifest URL MUST return `200 OK`.
209210
A successful response SHOULD contain the digest of the uploaded blob in the header `Docker-Content-Digest`.
210211
A successful response SHOULD contain the size in bytes of the uploaded blob in the header `Content-Length`.
211212

212-
If the blob or manifest is not found in the registry, the response code MUST be `404 Not Found`.
213+
If the blob or manifest is not found in the repository, the response code MUST be `404 Not Found`.
213214

214215
#### Push
215216

0 commit comments

Comments
 (0)