@@ -53,18 +53,22 @@ Unlike the [image index](image-index.md), which contains information about a set
53
53
While an empty blob (` size ` of 0) may be preferable, practice has shown that not to be ubiquitiously supported.
54
54
Instead, the blob payload can be the most minimal content that is still valid JSON object: ` {} ` (` size ` of 2).
55
55
The blob digest of ` {} ` is ` sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a ` .
56
- See the [ example SCRATCH config] ( #example-of-a-scratch-config-or-layer-descriptor ) below, and the ` ScratchDescriptor() ` of the reference code.
56
+ See the [ example SCRATCH config] ( #example-of-a-scratch-config-or-layer-descriptor ) below, and ` ScratchDescriptor ` of the reference code.
57
57
58
58
- ** ` layers ` ** * array of objects*
59
59
60
60
Each item in the array MUST be a [ descriptor] ( descriptor.md ) .
61
- The array MUST have the base layer at index 0.
62
- Subsequent layers MUST then follow in stack order (i.e. from ` layers[0] ` to ` layers[len(layers)-1] ` ).
63
- The final filesystem layout MUST match the result of [ applying] ( layer.md#applying-changesets ) the layers to an empty directory.
64
- The [ ownership, mode, and other attributes] ( layer.md#file-attributes ) of the initial empty directory are unspecified.
61
+ For portability, ` layers ` SHOULD have at least one entry.
62
+
63
+ When the ` config.mediaType ` is set to ` application/vnd.oci.image.config.v1+json ` , the following additional restrictions apply:
64
+
65
+ - The array MUST have the base layer at index 0.
66
+ - Subsequent layers MUST then follow in stack order (i.e. from ` layers[0] ` to ` layers[len(layers)-1] ` ).
67
+ - The final filesystem layout MUST match the result of [ applying] ( layer.md#applying-changesets ) the layers to an empty directory.
68
+ - The [ ownership, mode, and other attributes] ( layer.md#file-attributes ) of the initial empty directory are unspecified.
65
69
66
70
For broad portability, if a layer is required to be used, use the SCRATCH layer.
67
- See the [ example SCRATCH layer] ( #example-of-a-scratch-config-or-layer-descriptor ) below, and the ` ScratchDescriptor() ` of the reference code.
71
+ See the [ example SCRATCH layer] ( #example-of-a-scratch-config-or-layer-descriptor ) below, and ` ScratchDescriptor ` of the reference code.
68
72
69
73
Beyond the [ descriptor requirements] ( descriptor.md#properties ) , the value has the following additional restrictions:
70
74
0 commit comments