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
+8-7
Original file line number
Diff line number
Diff line change
@@ -9,16 +9,17 @@ Annotations MUST be a key-value map where both the key and value MUST be strings
9
9
While the value MUST be present, it MAY be an empty string.
10
10
Keys MUST be unique within this map, and best practice is to namespace the keys.
11
11
Keys SHOULD be named using a reverse domain notation - e.g. `com.example.myKey`.
12
-
Keys using the `org.opencontainers` namespace are reserved and MUST NOT be used by other specifications and extensions.
12
+
The prefix `org.opencontainers` is reserved for keys defined in Open Container Initiative (OCI) specifications and MUST NOT be used by other specifications and extensions.
13
+
Keys using the `org.opencontainers.image` namespace are reserved for use in the OCI Image Specification and MUST NOT be used by other specifications and extensions, including other OCI specifications.
13
14
If there are no annotations then this property MUST either be absent or be an empty map.
14
15
Consumers MUST NOT generate an error if they encounter an unknown annotation key.
15
16
16
17
## Pre-Defined Annotation Keys
17
18
18
19
This specification defines the following annotation keys, intended for but not limited to [image index](image-index.md) and image [manifest](manifest.md) authors:
19
-
***org.opencontainers.created** date on which the image was built (string, date-time as defined by [RFC 3339](https://tools.ietf.org/html/rfc3339#section-5.6)).
20
-
***org.opencontainers.authors** contact details of the people or organization responsible for the image (freeform string)
21
-
***org.opencontainers.homepage** URL to find more information on the image (string, a URL with scheme HTTP or HTTPS)
22
-
***org.opencontainers.documentation** URL to get documentation on the image (string, a URL with scheme HTTP or HTTPS)
23
-
***org.opencontainers.source** URL to get source code for the binary files in the image (string, a URL with scheme HTTP or HTTPS)
24
-
***org.opencontainers.ref.name** Name of the reference (string)
20
+
***org.opencontainers.image.created** date on which the image was built (string, date-time as defined by [RFC 3339](https://tools.ietf.org/html/rfc3339#section-5.6)).
21
+
***org.opencontainers.image.authors** contact details of the people or organization responsible for the image (freeform string)
22
+
***org.opencontainers.image.homepage** URL to find more information on the image (string, a URL with scheme HTTP or HTTPS)
23
+
***org.opencontainers.image.documentation** URL to get documentation on the image (string, a URL with scheme HTTP or HTTPS)
24
+
***org.opencontainers.image.source** URL to get source code for the binary files in the image (string, a URL with scheme HTTP or HTTPS)
25
+
***org.opencontainers.image.ref.name** Name of the reference (string)
Copy file name to clipboardexpand all lines: image-layout.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -147,17 +147,17 @@ The [image index](image-index.md) is a multi-descriptor entry point.
147
147
148
148
This index provides an established path (`/index.json`) to have an entry point for an image-layout and to discover auxiliary descriptors.
149
149
150
-
No semantic restriction is given for the "org.opencontainers.ref.name" annotation of descriptors.
150
+
No semantic restriction is given for the "org.opencontainers.image.ref.name" annotation of descriptors.
151
151
In general the `mediaType` of each [descriptor][descriptors] object in the `manifests` field will be either `application/vnd.oci.image.index.v1+json` or `application/vnd.oci.image.manifest.v1+json`.
152
152
Future versions of the spec MAY use a different mediatype (i.e. a new versioned format).
153
153
An encountered `mediaType` that is unknown SHOULD be safely ignored.
154
154
155
155
156
156
**Implementor's Note:**
157
-
A common use case of descriptors with a "org.opencontainers.ref.name" annotation is representing a "tag" for a container image.
157
+
A common use case of descriptors with a "org.opencontainers.image.ref.name" annotation is representing a "tag" for a container image.
158
158
For example, an image may have a tag for different versions or builds of the software.
159
159
In the wild you often see "tags" like "v1.0.0-vendor.0", "2.0.0-debug", etc.
160
-
Those tags will often be represented in an image-layout repository with matching "org.opencontainers.ref.name" annotations like "v1.0.0-vendor.0", "2.0.0-debug", etc.
160
+
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.
161
161
162
162
163
163
### Index Example
@@ -171,7 +171,7 @@ Those tags will often be represented in an image-layout repository with matching
0 commit comments