mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
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:
+13
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user