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
and is specified in the [schema 1 manifest definition](./manifest-v2-1.md)
7
+
# Image Manifest
14
8
15
-
This second schema version has two primary goals. The first is to allow
16
-
multi-architecture images, through a "fat manifest" which references image
17
-
manifests for platform-specific versions of an image. The second is to
18
-
move the Docker engine towards content-addressable images, by supporting
19
-
an image model where the image's configuration can be hashed to generate
20
-
an ID for the image.
9
+
The first goal is content-addressable images, by supporting an image model where the image's configuration can be hashed to generate an ID for the image and its components.
10
+
The second goal is to allow multi-architecture images, through a "fat manifest" which references image manifests for platform-specific versions of an image.
11
+
The third goal is to be translatable to the [OpenContainers/runtime-spec](https://github.com/opencontainers/runtime-spec)
21
12
22
13
# Media Types
23
14
24
-
The following media types are used by the manifest formats described here, and
25
-
the resources they reference:
15
+
The following media types are used by the manifest formats described here, and the resources they reference:
This field exists so that a client will have an expected size for the content before validating.
56
+
If the length of the retrieved content does not match the specified length, the content should not be trusted.
83
57
84
-
-**`architecture`***string*
58
+
-**`digest`***string*
85
59
86
-
The architecture field specifies the CPU architecture, for example
87
-
`amd64` or `ppc64le`.
60
+
The digest of the content, as defined by the [Registry V2 HTTP API Specificiation](https://docs.docker.com/registry/spec/api/#digest-parameter).
88
61
89
-
-**`os`***string*
62
+
-**`platform`***object*
90
63
91
-
The os field specifies the operating system, for example
92
-
`linux` or `windows`.
64
+
This REQUIRED property describes the platform which the image in the manifest runs on.
65
+
A full list of valid operating system and architecture values are listed in the [Go language documentation for `$GOOS` and `$GOARCH`](https://golang.org/doc/install/source#environment)
93
66
94
-
-**`os.version`***string*
67
+
-**`architecture`***string*
95
68
96
-
The optional os.version field specifies the operating system version,
97
-
for example `10.0.10586`.
69
+
This REQUIRED property specified the CPU architecture, for example `amd64` or `ppc64le`.
98
70
99
-
-**`os.features`***array*
71
+
-**`os`***string*
100
72
101
-
The optional os.features field specifies an array of strings,
102
-
each listing a required OS feature (for example on Windows
103
-
`win32k`).
73
+
This REQUIRED property specifies the operating system, for example `linux` or `windows`.
104
74
105
-
-**`variant`***string*
75
+
-**`os.version`***string*
106
76
107
-
The optional variant field specifies a variant of the CPU, for
108
-
example `armv6l` to specify a particular CPU variant of the ARM CPU.
77
+
This optional property specifies the operating system version, for example `10.0.10586`.
109
78
110
-
-**`features`***array*
79
+
-**`os.features`***array*
111
80
112
-
The optional features field specifies an array of strings, each
113
-
listing a required CPU feature (for example `sse4` or `aes`).
81
+
This OPTIONAL property specifies an array of strings, each specifying a mandatory OS feature (for example on Windows `win32k`).
82
+
83
+
-**`variant`***string*
84
+
85
+
This OPTIONAL property specifies the variant of the CPU, for example `armv6l` to specify a particular CPU variant of the ARM CPU.
86
+
87
+
-**`features`***array*
88
+
89
+
This OPTIONAL property specifies an array of strings, each specifying a mandatory CPU feature (for example `sse4` or `aes`).
114
90
115
91
## Example Manifest List
116
92
117
93
*Example showing a simple manifest list pointing to image manifests for two platforms:*
0 commit comments