Skip to content

Commit 03f258e

Browse files
author
Stephen Day
authored
Merge pull request opencontainers#459 from wking/empty-refs-blobs
image-layout: Require blobs/refs to exist but allow them to be empty
2 parents 048be18 + 0beb1e2 commit 03f258e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

image-layout.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ Given an image layout and a ref, a tool can create an [OCI Runtime Specification
99
* [Applying the filesystem layers](layer.md#applying) in the specified order
1010
* Converting the [image configuration](config.md) into an [OCI Runtime Specification `config.json`](https://github.com/opencontainers/runtime-spec/blob/v1.0.0-rc2/config.md)
1111

12-
The image layout has two top level directories:
12+
The image layout MUST contain two top level directories:
1313

14-
- "blobs" contains content-addressable blobs. A blob has no schema and should be considered opaque.
15-
- "refs" contains [descriptors][descriptors]. Commonly pointing to an [image manifest](manifest.md#image-manifest) or an [image manifest list](manifest-list.md#oci-image-manifest-list-specification).
14+
- `blobs` contains content-addressable blobs.
15+
A blob has no schema and should be considered opaque.
16+
- `refs` contains [descriptors][descriptors].
17+
Commonly pointing to an [image manifest](manifest.md#image-manifest) or an [image manifest list](manifest-list.md#oci-image-manifest-list-specification).
1618

19+
Both `blobs` and `refs` MAY be empty.
1720

18-
It also contains a file that is used to identify the layout version:
21+
The image layout MUST also contain a file that is used to identify the layout version:
1922

20-
- "oci-layout" MUST contain a JSON object with a version field `{"imageLayoutVersion": "1.0.0"}` and MAY include additional fields.
23+
- `oci-layout` MUST contain a JSON object with a version field `{"imageLayoutVersion": "1.0.0"}` and MAY include additional fields.
2124

2225
This is an example image layout:
2326

0 commit comments

Comments
 (0)