Skip to content

Commit 132151c

Browse files
committed
low hanging nits
Signed-off-by: Mike Brown <[email protected]>
1 parent 1aa2d89 commit 132151c

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OCI Distribution Specification Changes
22

3-
This doc should be updated when changes are made to the specification, indicating what is different.
3+
With the exception of de-minimis modifications (such as non-code impacting spelling corrections), this doc should be updated when changes are made to the specification, indicating what is different.
44

55
Each set of changes is given a letter corresponding to a set of modifications that were applied to the baseline specification.
66
These are merely for reference and shouldn't be used outside the specification other than to identify a set of modifications.

spec.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ For relevant details and a history leading up to this specification, please see
7575
- [docker/docker#9015](https://github.com/docker/docker/issues/9015)
7676
- [docker/docker-registry#612](https://github.com/docker/docker-registry/issues/612)
7777

78+
<!--- TODO: add relevant background information here --->
79+
7880
## Scope
7981

8082
This specification covers URL layout and protocols for interaction between a registry and registry client.
@@ -85,7 +87,7 @@ This specification includes the following features:
8587
- Namespace-oriented URI Layout
8688
- PUSH/PULL registry server for V2 image manifest format
8789
- Resumable layer PUSH support
88-
- V2 Client library implementation
90+
- V2 Client (Consumer) requirements
8991

9092
### Future
9193

@@ -154,9 +156,9 @@ The V2 registry API does not enforce this.
154156
The rules for a repository name are as follows:
155157

156158
1. A repository name is broken up into _path components_.
157-
A component of a repository name must be at least one lowercase, alpha-numeric characters, optionally separated by periods, dashes or underscores.
158-
More strictly, it must match the regular expression `[a-z0-9]+(?:[._-][a-z0-9]+)*`.
159-
2. If a repository name has two or more path components, they must be separated by a forward slash ("/").
159+
A component of a repository name must begin with one or more lowercase alpha-numeric characters. Subsequent lowercase alpha-numeric characters are optional and may be separated by periods, dashes or underscores.
160+
More strictly, it must match the regular expression `[a-z0-9]+(?:[._-][a-z0-9]+)*`.
161+
2. If a repository name has two or more path components, they must be separated by a forward slash ("/").
160162
3. The total length of a repository name, including slashes, must be less than 256 characters.
161163

162164
These name requirements _only_ apply to the registry API and should accept a superset of what is supported by other docker ecosystem components.
@@ -512,8 +514,7 @@ If this response is received, the client should resume from the "last valid rang
512514
A 416 will be returned under the following conditions:
513515

514516
- Invalid Content-Range header format
515-
- Out of order chunk: the range of the next chunk must start immediately after
516-
the "last valid range" from the previous response.
517+
- Out of order chunk: the range of the next chunk must start immediately after the "last valid range" from the previous response.
517518

518519
When a chunk is accepted as part of the upload, a `202 Accepted` response will be returned, including a `Range` header with the current upload status:
519520

@@ -876,7 +877,7 @@ If the image exists and has been successfully deleted, the following response wi
876877

877878
If the image had already been deleted or did not exist, a `404 Not Found` response will be issued instead.
878879

879-
> **Note** When deleting a manifest from a registry version 2.3 or later, the following header must be used when `HEAD` or `GET`-ing the manifest to obtain the correct digest to delete:
880+
> **Note**: When deleting a manifest from a registry version 2.3 or later, the following header must be used when `HEAD` or `GET`-ing the manifest to obtain the correct digest to delete:
880881
881882
Accept: application/vnd.docker.distribution.manifest.v2+json
882883

0 commit comments

Comments
 (0)