Skip to content

Commit cb96d84

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 8f39e5c commit cb96d84

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

config-linux.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,18 @@ However, a runtime CAN decide to not attach to any additional cgroup controllers
182182

183183
```json
184184
"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)