Skip to content

Commit 219ceaf

Browse files
committed
config-linux: add example of cgroup resource limits
The example section looks very sparse otherwise. Signed-off-by: Aleksa Sarai <asarai@suse.de>
1 parent 31b09e3 commit 219ceaf

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

config-linux.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,19 @@ However, a runtime CAN decide to not attach to any additional cgroup controllers
181181
###### Example
182182

183183
```json
184-
"cgroupsPath": "/myRuntime/myContainer"
184+
"cgroupsPath": "/myRuntime/myContainer",
185+
"resources": {
186+
"memory": {
187+
"limit": 100000,
188+
"reservation": 200000
189+
},
190+
"devices": [
191+
{
192+
"allow": false,
193+
"access": "rwm"
194+
}
195+
]
196+
}
185197
```
186198

187199
#### Device whitelist

0 commit comments

Comments
 (0)