Added support for v1 and v2 cgroups

No longer using a plugin to deploy solution
This commit is contained in:
Nadeem Douba
2023-07-03 09:58:18 -04:00
parent fe71719e45
commit 752fc9b8ba
12 changed files with 987 additions and 204 deletions

View File

@@ -28,26 +28,37 @@
},
"Linux": {
"Capabilities": [
"CAP_BPF",
"CAP_SYS_PTRACE",
"CAP_SYS_ADMIN"
],
"AllowAllDevices": true,
"Devices": null
},
"Mounts": [
{
"source": "/sys/fs/cgroup/devices",
"destination": "/sys/fs/cgroup/devices",
"options": [
"rw",
"rbind"
],
"type": "rbind"
},
{
"destination": "/dev",
"source": "/dev",
"options": [
"bind",
"rbind",
"rw"
],
"type": "bind"
},
{
"destination": "/host/sys",
"source": "/sys",
"options": [
"rbind",
"rw"
],
"type": "bind"
},
{
"destination": "/host/proc",
"source": "/proc",
"options": [
"rbind",
"rw"
],
"type": "bind"
@@ -66,7 +77,7 @@
"Network": {
"Type": ""
},
"PropagatedMount": "/dev",
"PropagatedMount": null,
"User": {},
"Workdir": "/"
}