File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -391,14 +391,19 @@ If a hook returns a non-zero exit code, then an error is logged and the remainin
391391
392392** ` annotations ` ** (object, OPTIONAL) contains arbitrary metadata for the container.
393393This information MAY be structured or unstructured.
394- Annotations MUST be a key-value map where both the key and value MUST be strings.
395- While the value MUST be present, it MAY be an empty string.
396- Keys MUST be unique and MUST NOT be an empty string within this map, and best practice is to namespace the keys.
394+ Annotations MUST be a key-value map.
395+ If there are no annotations then this property MAY either be absent or an empty map.
396+
397+ Keys MUST be strings.
398+ Keys MUST be unique within this map.
399+ Keys MUST NOT be an empty string.
397400Keys SHOULD be named using a reverse domain notation - e.g. ` com.example.myKey ` .
398401Keys using the ` org.opencontainers ` namespace are reserved and MUST NOT be used by subsequent specifications.
399- If there are no annotations then this property MAY either be absent or an empty map.
400402Implementations that are reading/processing this configuration file MUST NOT generate an error if they encounter an unknown annotation key.
401403
404+ Values MUST be strings.
405+ Values MAY be an empty string.
406+
402407``` json
403408"annotations" : {
404409 "com.example.gpu-cores" : " 2"
You can’t perform that action at this time.
0 commit comments