Skip to content

Commit 1e5f050

Browse files
committed
config: runtime SHOULD create mountpoints and cwd
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 4ebb31e commit 1e5f050

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ For all platform-specific configuration values, the scope defined below in the [
7171

7272
* **`destination`** (string, REQUIRED) Destination of mount point: path inside container.
7373
This value MUST be an absolute path.
74+
* Linux, Solaris: if the destination is a directory and it does not exist, the runtime SHOULD create the destination directory with mode `0755`.
7475
* Windows: one mount destination MUST NOT be nested within another mount (e.g., c:\\foo and c:\\foo\\bar).
7576
* Solaris: corresponds to "dir" of the fs resource in [zonecfg(1M)][zonecfg.1m].
7677
* **`source`** (string, OPTIONAL) A device name, but can also be a directory name or a dummy.
@@ -153,6 +154,7 @@ For POSIX platforms the `mounts` structure has the following fields:
153154
* **`width`** (uint, REQUIRED)
154155
* **`cwd`** (string, REQUIRED) is the working directory that will be set for the executable.
155156
This value MUST be an absolute path.
157+
On Linux and Solaris, if the directory does not exist, the runtime SHOULD create the directory with mode `0755`.
156158
* **`env`** (array of strings, OPTIONAL) with the same semantics as [IEEE Std 1003.1-2008's `environ`][ieee-1003.1-2008-xbd-c8.1].
157159
* **`args`** (array of strings, REQUIRED) with similar semantics to [IEEE Std 1003.1-2008 `execvp`'s *argv*][ieee-1003.1-2008-functions-exec].
158160
This specification extends the IEEE standard in that at least one entry is REQUIRED, and that entry is used with the same semantics as `execvp`'s *file*.

0 commit comments

Comments
 (0)