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-linux.md
-18Lines changed: 0 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -455,24 +455,6 @@ For more information, see [the man page](http://man7.org/linux/man-pages/man8/sy
455
455
}
456
456
```
457
457
458
-
## Rlimits
459
-
460
-
rlimits allow setting resource limits.
461
-
`type` is a string with a value from those defined in [the man page](http://man7.org/linux/man-pages/man2/setrlimit.2.html).
462
-
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.
463
-
464
-
###### Example
465
-
466
-
```json
467
-
"rlimits": [
468
-
{
469
-
"type": "RLIMIT_NPROC",
470
-
"soft": 1024,
471
-
"hard": 102400
472
-
}
473
-
]
474
-
```
475
-
476
458
## seccomp
477
459
478
460
Seccomp provides application sandboxing mechanism in the Linux kernel.
Copy file name to clipboardExpand all lines: config.md
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,10 +90,13 @@ See links for details about [mountvol](http://ss64.com/nt/mountvol.html) and [Se
90
90
***`env`** (array of strings, optional) contains a list of variables that will be set in the process's 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).
91
91
***`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 absolute path then the search $PATH is interpreted to find the executable.
92
92
93
-
For Linux-based systemd the process structure supports the following process specific fields:
93
+
For Linux-based systems the process structure supports the following process specific fields:
94
94
95
95
***`capabilities`** (array of strings, optional) capabilities is an array that specifies Linux capabilities that can be provided to the process inside the container.
96
96
Valid values are the strings for capabilities defined in [the man page](http://man7.org/linux/man-pages/man7/capabilities.7.html)
97
+
***`rlimits`** (array of rlimits, optional) rlimits is an array of rlimits that allows setting resource limits for a process inside the container.
98
+
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.
99
+
Valid values for the 'type' field are the resources defined in [the man page](http://man7.org/linux/man-pages/man2/setrlimit.2.html).
97
100
***`apparmorProfile`** (string, optional) apparmor profile specifies the name of the apparmor profile that will be used for the container.
98
101
For more information about Apparmor, see [Apparmor documentation](https://wiki.ubuntu.com/AppArmor)
99
102
***`selinuxLabel`** (string, optional) SELinux process label specifies the label with which the processes in a container are run.
@@ -133,6 +136,13 @@ For Linux-based systems the user structure has the following fields:
133
136
"CAP_AUDIT_WRITE",
134
137
"CAP_KILL",
135
138
"CAP_NET_BIND_SERVICE"
139
+
],
140
+
"rlimits": [
141
+
{
142
+
"type": "RLIMIT_NOFILE",
143
+
"hard": 1024,
144
+
"soft": 1024
145
+
}
136
146
]
137
147
}
138
148
```
@@ -278,6 +288,13 @@ Here is a full example `config.json` for reference.
278
288
"CAP_KILL",
279
289
"CAP_NET_BIND_SERVICE"
280
290
],
291
+
"rlimits": [
292
+
{
293
+
"type": "RLIMIT_NOFILE",
294
+
"hard": 1024,
295
+
"soft": 1024
296
+
}
297
+
],
281
298
"apparmorProfile": "",
282
299
"selinuxLabel": ""
283
300
},
@@ -373,13 +390,6 @@ Here is a full example `config.json` for reference.
0 commit comments