Keine docker cpu stats im LXC container

:oops:

Welche Version von Ubuntu verwendest Du? Weist Du zufällig welche Version von cgroups im Einsatz ist? Ich habe die Vermutung, dass es an cgroups V2 und deren Konfiguration/Weiterleitung liegt, dass die Werte nicht in den docker stats auftauchen. Egal welche Variante ich in Alpine aktiviere, es werden höchstens CPU Werte in docker stats dargestellt.
ich habe Ubuntu 23.04 aber hatte davor 21 glaube ich. Bin mir nicht mir so sicher. Aber ich habe das Problem nicht. Bezüglich cgroup habe ich das hier bei mir gesehen:
none on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime)
oder meinst du etwas anderes?
 
ich habe Ubuntu 23.04 aber hatte davor 21 glaube ich. Bin mir nicht mir so sicher. Aber ich habe das Problem nicht. Bezüglich cgroup habe ich das hier bei mir gesehen:
none on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime)
oder meinst du etwas anderes?
Wenn es die Datei /sys/fs/cgroup/cgroup.controllers gibt, dann läuft bei Dir cgroup v2. Laut diesem Link https://rootlesscontaine.rs/getting-started/common/cgroup2/ sollte Ubuntu ab Version 21.10 als Standard cgroup v2 aktiviert sein. Was steht denn bei Dir in der Datei
/sys/fs/cgroup/cgroup.subtree_control? Diese ist bei mir leer und ich kann nicht "cpuset cpu io memory" eintragen.
 
ich sehe das hier:
cpuset cpu io memory hugetlb pids rdma misc
Ich kann ja auch nichts eintragen, weil der lxc Container nicht privilegiert ist
 
ich sehe das hier:
cpuset cpu io memory hugetlb pids rdma misc
Ich kann ja auch nichts eintragen, weil der lxc Container nicht privilegiert ist
In Proxmox stehen bei mir in /sys/fs/cgroup/cgroup.subtree_control auch die Werte "cpuset cpu io memory hugetlb pids rdma misc", in meinem LXC Container ist die Datei leer.
Kann die leere Datei cgroup.subtree_control im LXC das Problem für die fehlenden Werte bei docker stats sein?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!