File tree Expand file tree Collapse file tree 3 files changed +26
-15
lines changed Expand file tree Collapse file tree 3 files changed +26
-15
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ See links for details about [mountvol](http://ss64.com/nt/mountvol.html) and [Se
99
99
* ** ` args ` ** (array of strings, optional) executable to launch and any flags as an array.
100
100
The executable is the first element and MUST be available at the given path inside of the rootfs.
101
101
If the executable path is not an absolute path then the search $PATH is interpreted to find the executable.
102
+ * ** ` user ` ** (object, required) the process user.
103
+ The properties for this object are [ platform dependent] ( #user ) .
102
104
103
105
For Linux-based systems the process structure supports the following process specific fields:
104
106
Original file line number Diff line number Diff line change 1
1
{
2
2
"definitions" : {
3
+ "user" : {
4
+ "type" : " object" ,
5
+ "properties" : {
6
+ "uid" : {
7
+ "$ref" : " defs.json#/definitions/UID"
8
+ },
9
+ "gid" : {
10
+ "$ref" : " defs.json#/definitions/GID"
11
+ },
12
+ "additionalGids" : {
13
+ "$ref" : " defs.json#/definitions/ArrayOfGIDs"
14
+ }
15
+ },
16
+ "required" : [
17
+ " uid" ,
18
+ " gid"
19
+ ]
20
+ },
3
21
"SeccompArch" : {
4
22
"type" : " string" ,
5
23
"enum" : [
Original file line number Diff line number Diff line change 83
83
"id" : " https://opencontainers.org/schema/bundle/process" ,
84
84
"type" : " object" ,
85
85
"required" : [
86
- " cwd"
86
+ " cwd" ,
87
+ " user"
87
88
],
88
89
"properties" : {
89
90
"args" : {
104
105
},
105
106
"user" : {
106
107
"id" : " https://opencontainers.org/schema/bundle/process/user" ,
107
- "type" : " object" ,
108
- "properties" : {
109
- "uid" : {
110
- "id" : " https://opencontainers.org/schema/bundle/process/user/uid" ,
111
- "$ref" : " defs.json#/definitions/UID"
112
- },
113
- "gid" : {
114
- "id" : " https://opencontainers.org/schema/bundle/process/user/gid" ,
115
- "$ref" : " defs.json#/definitions/GID"
116
- },
117
- "additionalGids" : {
118
- "id" : " https://opencontainers.org/schema/bundle/process/user/additionalGids" ,
119
- "$ref" : " defs.json#/definitions/ArrayOfGIDs"
108
+ "oneOf" : [
109
+ {
110
+ "$ref" : " defs-linux.json#/definitions/user"
120
111
}
121
- }
112
+ ]
122
113
},
123
114
"capabilities" : {
124
115
"id" : " https://opencontainers.org/schema/bundle/process/linux/capabilities" ,
You can’t perform that action at this time.
0 commit comments