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: config.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,8 @@ Below is a detailed description of each field defined in the configuration forma
10
10
11
11
## Specification version
12
12
13
-
***`ociVersion`** (string, required) MUST be in [SemVer v2.0.0](http://semver.org/spec/v2.0.0.html) format and specifies the version of the OpenContainer specification with which the bundle complies.
14
-
The OpenContainer spec follows semantic versioning and retains forward and backward compatibility within major versions.
13
+
***`ociVersion`** (string, required) MUST be in [SemVer v2.0.0](http://semver.org/spec/v2.0.0.html) format and specifies the version of the Open Container Runtime Specification with which the bundle complies.
14
+
The Open Container Runtime Specification follows semantic versioning and retains forward and backward compatibility within major versions.
15
15
For example, if an implementation is compliant with version 1.0.1 of the spec, it is compatible with the complete 1.x series.
16
16
17
17
### Example
@@ -22,7 +22,7 @@ For example, if an implementation is compliant with version 1.0.1 of the spec, i
22
22
23
23
## Root Configuration
24
24
25
-
Each container has exactly one *root filesystem*, specified in the *root* object:
25
+
**`root`** (object, required) configures the container's root filesystem.
26
26
27
27
***`path`** (string, required) Specifies the path to the root filesystem for the container.
28
28
A directory MUST exist at the path declared by the field.
@@ -39,7 +39,7 @@ Each container has exactly one *root filesystem*, specified in the *root* object
39
39
40
40
## Mounts
41
41
42
-
You MAY add array of mount points inside container as `mounts`.
42
+
**`mounts`** (array, optional) configures additional mounts (on top of [`root`](#root-configuration)).
43
43
The runtime MUST mount entries in the listed order.
44
44
The parameters are similar to the ones in [the Linux mount system call](http://man7.org/linux/man-pages/man2/mount.2.html).
45
45
@@ -90,6 +90,8 @@ See links for details about [mountvol](http://ss64.com/nt/mountvol.html) and [Se
90
90
91
91
## Process configuration
92
92
93
+
**`process`** (object, required) configures the container process.
94
+
93
95
***`terminal`** (bool, optional) specifies whether you want a terminal attached to that process, defaults to false.
94
96
***`cwd`** (string, required) is the working directory that will be set for the executable.
95
97
This value MUST be an absolute path.
@@ -189,7 +191,7 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th
189
191
190
192
## Hostname
191
193
192
-
***`hostname`** (string, optional) as it is accessible to processes running inside.
194
+
***`hostname`** (string, optional) configures the container's hostname as seen by processes running inside the container.
193
195
On Linux, you can only set this if your bundle creates a new [UTS namespace][uts-namespace].
194
196
195
197
### Example
@@ -200,6 +202,8 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th
200
202
201
203
## Platform
202
204
205
+
**`platform`** specifies the configuration's target platform.
206
+
203
207
***`os`** (string, required) specifies the operating system family this image targets.
204
208
The runtime MUST generate an error if it does not support the configured **`os`**.
205
209
Bundles SHOULD use, and runtimes SHOULD understand, **`os`** entries listed in the Go Language document for [`$GOOS`][go-environment].
@@ -247,6 +251,7 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th
247
251
248
252
## Hooks
249
253
254
+
**`hooks`** (object, optional) configures callbacks for container lifecycle events.
250
255
Lifecycle hooks allow custom events for different points in a container's runtime.
251
256
Presently there are `Prestart`, `Poststart` and `Poststop`.
252
257
@@ -317,7 +322,7 @@ The semantics are the same as `Path`, `Args` and `Env` in [golang Cmd](https://g
317
322
318
323
## Annotations
319
324
320
-
This OPTIONAL property contains arbitrary metadata for the container.
325
+
**`annotations`** (object, optional) contains arbitrary metadata for the container.
321
326
This information MAY be structured or unstructured.
0 commit comments