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
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,12 @@ 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.
59
+
- **org.opencontainers.image.referrer.convert** Defined and set to `true` when tooling has converted any referrers from the fallback tag to using the `org.opencontainers.image.referrer.subject` annotation.
60
+
- This SHOULD only be considered valid when on the manifest of the `index.json` within [image layout](image-layout.md).
61
+
- Tooling that reads an [image layout](image-layout.md) MAY skip the referrers conversion process when the annotation is detected.
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
@@ -155,6 +155,11 @@ For example, an image may have a tag for different versions or builds of the sof
155
155
In the wild you often see "tags" like "v1.0.0-vendor.0", "2.0.0-debug", etc.
156
156
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.
157
157
158
+
**Referrers Support:**
159
+
Referrers MAY be referenced using the fallback tag if the "org.opencontainers.image.referrer.convert" annotation is not set to "true".
160
+
Before writing descriptors with the "org.opencontainers.image.referrer.subject" annotation, implementations MUST ensure the "org.opencontainers.image.referrer.convert" annotation is set to "true" and convert any existing content referenced with the fallback tag if the annotation was not set.
161
+
If the "org.opencontainers.image.referrer.convert" annotation is set to "true", implementations MAY skip the conversion of referrers stored with the fallback tag and depend on the "org.opencontainers.image.referrer.subject" annotation to detect any referrers.
@@ -201,7 +215,8 @@ Those tags will often be represented in an image-layout repository with matching
201
215
This illustrates an index that provides two named references and an auxiliary mediatype for this image layout.
202
216
203
217
The first named reference (`stable-release`) points to another index that might contain multiple references with distinct platforms and annotations.
204
-
Note that the [`org.opencontainers.image.ref.name` annotation](annotations.md) SHOULD only be considered valid when on descriptors on `index.json`.
218
+
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`.
219
+
The [`org.opencontainers.image.referrer.convert` annotation](annotations.md) SHOULD only be considered valid when on manifest of the `index.json`.
205
220
206
221
The second named reference (`v1.0`) points to a manifest that is specific to the linux/ppc64le platform.
// AnnotationReferrerConvert is the annotation key that is set to "true" when tooling has converted any referrers from the fallback tag to using the `org.opencontainers.image.referrer.subject` annotation.
69
+
// This SHOULD only be considered valid when on the manifest of the `index.json` within image layout.
70
+
// Tooling that reads an image layout MAY skip the referrers conversion process when the annotation is detected.
0 commit comments