Commit 75ab855
committed
fix(entity_id): Handle Podman cgroupns=host cgroup path with .scope/container suffix
systemd + cgroup v2 (cgroupns=host) │ ...libpod-<ID>.scope/container
When a container runs with systemd + crgroup v2 (cgroupns=host) the cgroup
path has /container after .scope.
0::/machine.slice/libpod-HEXID.scope/container
(podman never seems to set anything other than the default "container"
-- could find no reference to `run.oci.systemd.subgroup` -- but match
other strings as well.1 parent 15860bb commit 75ab855
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
0 commit comments