Skip to content

Commit 9ac7ffc

Browse files
committed
image-index: define platform.os.version on Windows
Signed-off-by: Akihiro Suda <[email protected]>
1 parent a82c098 commit 9ac7ffc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

image-index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ For the media type(s) that this document is compatible with, see the [matrix][ma
5555

5656
- **`os.version`** *string*
5757

58-
This OPTIONAL property specifies the operating system version, for example `10.0.10586`.
58+
This OPTIONAL property specifies the version of the operating system included in the layers specified by the manifest.
59+
Implementations MAY refuse to use manifests of which `os.version` is not known to work with the host OS version.
60+
When OS is Windows, image indexes SHOULD use, and implementations SHOULD understand quad-notation values of [`System.Version` properties](system-version), `Major.Minor.Build.Revision`. e.g. `10.0.14393.1066`.
61+
When OS is not Windows, values are implementation-defined and SHOULD be submitted to this specification for standardization.
5962

6063
- **`os.features`** *array of strings*
6164

@@ -114,3 +117,4 @@ For the media type(s) that this document is compatible with, see the [matrix][ma
114117

115118
[runtime-platform2]: https://github.com/opencontainers/runtime-spec/blob/v1.0.0-rc3/config.md#platform
116119
[matrix]: media-types.md#compatibility-matrix
120+
[system-version]: https://msdn.microsoft.com/en-us/library/system.version(v=vs.110).aspx

specs-go/v1/descriptor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type Platform struct {
5151
OS string `json:"os"`
5252

5353
// OSVersion is an optional field specifying the operating system
54-
// version, for example `10.0.10586`.
54+
// version, for example on Windows `10.0.14393.1066`.
5555
OSVersion string `json:"os.version,omitempty"`
5656

5757
// OSFeatures is an optional field specifying an array of strings,

0 commit comments

Comments
 (0)