Skip to content

Commit 8af3eb6

Browse files
committed
Specific platform specific user struct for spec
Signed-off-by: Michael Crosby <[email protected]>
1 parent 9291233 commit 8af3eb6

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

config.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,28 @@ See links for details about [mountvol](http://ss64.com/nt/mountvol.html) and [Se
9090
## Processes configuration
9191

9292
* **terminal** (bool, optional) specifies whether you want a terminal attached to that process. Defaults to false.
93-
* **user** (string, required) indicates the user which the process will run as.
9493
* **cwd** (string, optional) is the working directory that will be set for the executable.
9594
* **env** (array of strings, optional) contains a list of variables that will be set in the processes environment prior to execution. Elements in the array are specified as Strings in the form "KEY=value". The left hand side must consist solely of letters, digits, and underscores '_' as outlined in [IEEE Std 1003.1-2001](http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html).
9695
* **args** (string, required) executable to launch and any flags as an array. The executable is the first element and must be available at the given path inside of the rootfs. If the executable path is not an absoulte path then the search $PATH is interpreted to find the executable.
9796

97+
The user for the process is a platform specific structure that allows specific control
98+
over which user the process runs as. For linux based systems the user structure has the
99+
following fields:
100+
101+
* **uid** (int, required) specifies the user id.
102+
* **gid** (int, required) specifies the group id.
103+
* **additionalGids** (array of ints, optional) specifies additional group ids to be added to the process.
104+
98105
*Example*
99106

100107
```json
101108
"process": {
102109
"terminal": true,
103-
"user": "daemon",
110+
"user": {
111+
"uid": 1,
112+
"gid": 1,
113+
"additionalGids": []
114+
},
104115
"env": [
105116
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
106117
"TERM=xterm"

0 commit comments

Comments
 (0)