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: annotations.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,9 @@ This specification defines the following annotation keys, intended for but not l
53
53
- This SHOULD be the immediate image sharing zero-indexed layers with the image, such as from a Dockerfile `FROM` statement.
54
54
- This SHOULD NOT reference any other images used to generate the contents of the image (e.g., multi-stage Dockerfile builds).
55
55
- If the `image.base.name` annotation is specified, the `image.base.digest` annotation SHOULD be the digest of the manifest referenced by the `image.ref.name` annotation.
56
+
- **org.opencontainers.image.referrer.subject** Digest of the subject referenced by the referrers response (string)
57
+
- This SHOULD only be considered valid when on descriptors on `index.json` within [image layout](image-layout.md).
58
+
- The descriptor SHOULD be the referrers response for the subject digest.
Copy file name to clipboardExpand all lines: image-layout.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,10 @@ For example, an image may have a tag for different versions or builds of the sof
160
160
In the wild you often see "tags" like "v1.0.0-vendor.0", "2.0.0-debug", etc.
161
161
Those tags will often be represented in an image-layout repository with matching "org.opencontainers.image.ref.name" annotations like "v1.0.0-vendor.0", "2.0.0-debug", etc.
162
162
163
+
**Referrers Support:**
164
+
Manifests included in an OCI Layout that contain a `subject` field SHOULD be listed in a [referrers response][referrers-response].
165
+
The referrers response is then saved as a blob and listed in the `index.json` with the media type set to `application/vnd.oci.image.index.v1+json` and the annotation `org.opencontainers.image.referrer.subject` set to the `subject` digest value.
@@ -206,8 +219,10 @@ Those tags will often be represented in an image-layout repository with matching
206
219
This illustrates an index that provides two named references and an auxiliary mediatype for this image layout.
207
220
208
221
The first named reference (`stable-release`) points to another index that might contain multiple references with distinct platforms and annotations.
209
-
Note that the [`org.opencontainers.image.ref.name` annotation](annotations.md) SHOULD only be considered valid when on descriptors on `index.json`.
222
+
Note that the [`org.opencontainers.image.ref.name` and `org.opencontainers.image.referrer.subject` annotations](annotations.md) SHOULD only be considered valid when on descriptors on `index.json`.
223
+
The [`org.opencontainers.image.referrer.convert` annotation](annotations.md) SHOULD only be considered valid when on manifest of the `index.json`.
210
224
211
225
The second named reference (`v1.0`) points to a manifest that is specific to the linux/ppc64le platform.
0 commit comments