You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For specifying device cgroups independent of device creation.
I also split the cgroups section into sections for each class (the
earlier docs were very terse). I'll flesh these sections out in
future commits if the devices addition sounds acceptable.
Signed-off-by: W. Trevor King <wking@tremily.us>
Also known as cgroups, they are used to restrict resource usage for a container and handle
70
-
device access. cgroups provide controls to restrict cpu, memory, IO, and network for
71
-
the container. For more information, see the [kernel cgroups documentation](https://www.kernel.org/doc/Documentation/cgroups/cgroups.txt)
69
+
Also known as cgroups, they are used to restrict resource usage for a container and handle device access.
70
+
For more information, see the [kernel cgroups documentation][cgroups].
71
+
You can configure a container's cgroups via the "resources" field of the Linux configuration.
72
+
73
+
### Disable out-of-memory killer
74
+
75
+
FIXME
76
+
77
+
### Memory
78
+
79
+
FIXME
80
+
81
+
### CPU
82
+
83
+
FIXME
84
+
85
+
### Block I/O
86
+
87
+
FIXME
88
+
89
+
### Devices
90
+
91
+
Container-side devices are [mounted from the bundle filesystems][mount-devices].
92
+
Bundle authors can set major and minor nodes, owner IDs, filesystem permissions, etc. by altering those filesystems.
93
+
However, you cannot pass cgroup information via the bundle filesystem, so bundle authors that need special device cgroups should use the "devices" field of the resource configuration.
94
+
The fields are discussed [in the kernel documentation][cgroups-devices].
95
+
The entries are applied to the container in the order that they are listed in the configuration.
96
+
97
+
```json
98
+
"devices": [
99
+
{
100
+
"allow": false,
101
+
"type": "a",
102
+
"major": "*",
103
+
"minor": "*",
104
+
"access": "rwm",
105
+
},
106
+
{
107
+
"allow": true,
108
+
"type": "c",
109
+
"major": "1",
110
+
"minor": "3",
111
+
"access": "mr",
112
+
}
113
+
]
114
+
```
115
+
116
+
### Huge page limits
117
+
118
+
FIXME
119
+
120
+
### Network
121
+
122
+
FIXME
72
123
73
124
## Linux capabilities
74
125
@@ -144,3 +195,6 @@ rootfsPropagation sets the rootfs's mount propagation. Its value is either slave
0 commit comments