Windows: User struct changes
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
b3ce1951cf
commit
f9e48e0024
24
config.md
24
config.md
|
@ -186,7 +186,31 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th
|
||||||
"cwd": "/root",
|
"cwd": "/root",
|
||||||
"args": [
|
"args": [
|
||||||
"/usr/bin/bash"
|
"/usr/bin/bash"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Windows User
|
||||||
|
|
||||||
|
For Windows based systems the user structure has the following fields:
|
||||||
|
|
||||||
|
* **`username`** (string, optional) specifies the user name for the process.
|
||||||
|
|
||||||
|
### Example (Windows)
|
||||||
|
|
||||||
|
```json
|
||||||
|
"process": {
|
||||||
|
"terminal": true,
|
||||||
|
"user": {
|
||||||
|
"username": "containeradministrator"
|
||||||
|
},
|
||||||
|
"env": [
|
||||||
|
"VARIABLE=1"
|
||||||
],
|
],
|
||||||
|
"cwd": "c:\\foo",
|
||||||
|
"args": [
|
||||||
|
"someapp.exe",
|
||||||
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -53,8 +53,7 @@ type Process struct {
|
||||||
SelinuxLabel string `json:"selinuxLabel,omitempty" platform:"linux"`
|
SelinuxLabel string `json:"selinuxLabel,omitempty" platform:"linux"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// User specifies Linux/Solaris specific user and group information
|
// User specifies specific user (and group) information for the container process.
|
||||||
// for the container process.
|
|
||||||
type User struct {
|
type User struct {
|
||||||
// UID is the user id. (this field is platform dependent)
|
// UID is the user id. (this field is platform dependent)
|
||||||
UID uint32 `json:"uid" platform:"linux,solaris"`
|
UID uint32 `json:"uid" platform:"linux,solaris"`
|
||||||
|
@ -62,6 +61,8 @@ type User struct {
|
||||||
GID uint32 `json:"gid" platform:"linux,solaris"`
|
GID uint32 `json:"gid" platform:"linux,solaris"`
|
||||||
// AdditionalGids are additional group ids set for the container's process. (this field is platform dependent)
|
// AdditionalGids are additional group ids set for the container's process. (this field is platform dependent)
|
||||||
AdditionalGids []uint32 `json:"additionalGids,omitempty" platform:"linux,solaris"`
|
AdditionalGids []uint32 `json:"additionalGids,omitempty" platform:"linux,solaris"`
|
||||||
|
// Username is the user name. (this field is platform dependent)
|
||||||
|
Username string `json:"username,omitempty" platform:"windows"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Root contains information about the container's root filesystem on the host.
|
// Root contains information about the container's root filesystem on the host.
|
||||||
|
|
Loading…
Reference in New Issue