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
+21-13Lines changed: 21 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,13 +107,21 @@ See links for details about [mountvol](http://ss64.com/nt/mountvol.html) and [Se
107
107
The executable is the first element and MUST be available at the given path inside of the rootfs.
108
108
If the executable path is not an absolute path then the search $PATH is interpreted to find the executable.
109
109
110
-
For Linux-based systems the process structure supports the following process specific fields:
110
+
For Linux and Solaris systems, the process structure supports the following process-specific fields:
111
+
112
+
***`rlimits`** (object, OPTIONAL) configures [rlimits][setrlimit.3] for the container process.
113
+
Valid keys are `RLIMIT_*` resources.
114
+
POSIX [defines several][setrlimit.3], and [Linux][setrlimit.2-linux] and [Solaris][setrlimit.2-solaris] add additional, platform-specific resources.
115
+
Values have the following properties:
116
+
117
+
***`soft`** (uint64, OPTIONAL) The current limit on the resource.
118
+
***`hard`** (uint64, OPTIONAL) The ceiling for soft limts going forward.
119
+
Only a process with appropriate privileges can raise a hard limit.
120
+
121
+
For Linux-based systems, the process structure supports the following process-specific fields:
111
122
112
123
***`capabilities`** (array of strings, OPTIONAL) capabilities is an array that specifies Linux capabilities that can be provided to the process inside the container.
113
124
Valid values are the strings for capabilities defined in [the man page](http://man7.org/linux/man-pages/man7/capabilities.7.html)
114
-
***`rlimits`** (array of rlimits, OPTIONAL) rlimits is an array of rlimits that allows setting resource limits for a process inside the container.
115
-
The kernel enforces the `soft` limit for a resource while the `hard` limit acts as a ceiling for that value that could be set by an unprivileged process.
116
-
Valid values for the 'type' field are the resources defined in [the man page](http://man7.org/linux/man-pages/man2/setrlimit.2.html).
117
125
***`apparmorProfile`** (string, OPTIONAL) apparmor profile specifies the name of the apparmor profile that will be used for the container.
118
126
For more information about Apparmor, see [Apparmor documentation](https://wiki.ubuntu.com/AppArmor)
119
127
***`selinuxLabel`** (string, OPTIONAL) SELinux process label specifies the label with which the processes in a container are run.
@@ -167,9 +175,8 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th
167
175
"CAP_KILL",
168
176
"CAP_NET_BIND_SERVICE"
169
177
],
170
-
"rlimits": [
171
-
{
172
-
"type": "RLIMIT_NOFILE",
178
+
"rlimits": {
179
+
"RLIMIT_NOFILE": {
173
180
"hard": 1024,
174
181
"soft": 1024
175
182
}
@@ -415,18 +422,16 @@ Here is a full example `config.json` for reference.
0 commit comments