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: manifest.md
+90-3Lines changed: 90 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,12 @@ Unlike the [image index](image-index.md), which contains information about a set
26
26
When used, this field MUST contain the media type `application/vnd.oci.image.manifest.v1+json`.
27
27
This field usage differs from the [descriptor](descriptor.md#properties) use of `mediaType`.
28
28
29
+
-**`artifactType`***string*
30
+
31
+
This OPTIONAL property contains the type of an artifact when the manifest is used for an artifact.
32
+
This MUST be set when `config.mediaType` is set to the [scratch value](#example-of-a-scratch-config-or-layer-descriptor).
33
+
If defined, the value MUST comply with [RFC 6838][rfc6838], including the [naming requirements in its section 4.2][rfc6838-s4.2], and MAY be registered with [IANA][iana].
34
+
29
35
-**`config`***[descriptor](descriptor.md)*
30
36
31
37
This REQUIRED property references a configuration object for a container, by digest.
@@ -38,7 +44,8 @@ Unlike the [image index](image-index.md), which contains information about a set
Manifests concerned with portability SHOULD use one of the above media types.
47
+
Manifests for container images concerned with portability SHOULD use one of the above media types.
48
+
Manifests for artifacts concerned with portability SHOULD use `config.mediaType` as described in [Guidelines for Artifact Usage](#guidelines-for-artifact-usage).
42
49
43
50
If the manifest uses a different media type than the above, it MUST comply with [RFC 6838][rfc6838], including the [naming requirements in its section 4.2][rfc6838-s4.2], and MAY be registered with [IANA][iana].
44
51
@@ -78,6 +85,8 @@ Unlike the [image index](image-index.md), which contains information about a set
78
85
79
86
If the manifest uses a different media type than the above, it MUST comply with [RFC 6838][rfc6838], including the [naming requirements in its section 4.2][rfc6838-s4.2], and MAY be registered with [IANA][iana].
80
87
88
+
See [Guidelines for Artifact Usage](#guidelines-for-artifact-usage) for other uses of the `layers`.
89
+
81
90
-**`subject`***[descriptor](descriptor.md)*
82
91
83
92
This OPTIONAL property specifies a [descriptor](descriptor.md) of another manifest.
@@ -133,16 +142,94 @@ Unlike the [image index](image-index.md), which contains information about a set
133
142
134
143
## Example of a SCRATCH config or layer descriptor
135
144
136
-
Notice that the `mediaType` is subject to the usage or context, while the digest is specifically defined as `ScratchDigestSHA256`
145
+
Notice that the `mediaType` is subject to the usage or context, while the digest is specifically defined as `ScratchDigestSHA256`.
146
+
When the `ScratchDigestSHA256` is used, the media type SHOULD be set to `application/vnd.oci.scratch.v1+json` to differentiate the descriptor from one pointing to content.
Content other than OCI container images MAY be packaged using the image manifest.
159
+
When this is done, the `config.mediaType` value MUST be set to a value specific to the artifact type or the [scratch value](#example-of-a-scratch-config-or-layer-descriptor).
160
+
If the `config.mediaType` is set to the scratch value, the `artifactType` MUST be defined.
161
+
If the artifact does not need layers, a single layer SHOULD be included with a non-zero size.
162
+
The suggested content for an unused layer is the [SCRATCH](#example-of-a-scratch-config-or-layer-descriptor) descriptor.
163
+
164
+
Here is an example manifest for a typical artifact:
The following media types identify a ["Layer" with distribution restrictions](layer.md#non-distributable-layers), but are **deprecated** and not recommended for future use:
0 commit comments