Skip to content

Commit 4ed839e

Browse files
committed
config-linux: add example of cgroup resource limits
The example section looks very sparse otherwise. Signed-off-by: Aleksa Sarai <[email protected]>
1 parent 4291fd1 commit 4ed839e

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

config-linux.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,19 @@ However, a runtime MAY attach the container process to additional cgroup control
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)