config-linux: add example of cgroup resource limits

The example section looks very sparse otherwise.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
Aleksa Sarai
2016-07-07 17:46:35 +10:00
parent 4291fd1d5a
commit 4ed839e747
+13 -1
View File
@@ -181,7 +181,19 @@ However, a runtime MAY attach the container process to additional cgroup control
###### Example
```json
"cgroupsPath": "/myRuntime/myContainer"
"cgroupsPath": "/myRuntime/myContainer",
"resources": {
"memory": {
"limit": 100000,
"reservation": 200000
},
"devices": [
{
"allow": false,
"access": "rwm"
}
]
}
```
#### Device whitelist