Closed kdryetyln closed 7 months ago
WARNING: No cpuset support
You need to enable delegation for cpuset, but this needs systemd >= 244 (Rocky >= 9) https://rootlesscontaine.rs/getting-started/common/cgroup2/#enabling-cpu-cpuset-and-io-delegation
WARNING: No cpuset support
You need to enable delegation for cpuset, but this needs systemd >= 244 (Rocky >= 9) https://rootlesscontaine.rs/getting-started/common/cgroup2/#enabling-cpu-cpuset-and-io-delegation Hello @AkihiroSuda ,
Is what you said valid also for docker rootfull? Because I cannot show the CPU and network data in dockerrootfull. However, I can see CPU and network data in Docker Stats.
WARNING: No cpuset support
You need to enable delegation for cpuset, but this needs systemd >= 244 (Rocky >= 9) https://rootlesscontaine.rs/getting-started/common/cgroup2/#enabling-cpu-cpuset-and-io-delegation Hello @AkihiroSuda ,
Is what you said valid also for docker rootfull? Because I cannot show the CPU and network data in dockerrootfull. However, I can see CPU and network data in Docker Stats.
No, probably you are seeing a different issue. https://github.com/moby/moby/blob/master/contrib/check-config.sh might be used for analyzing the cause of the issue.
I fixed my problem with this configuration:
docker run -v /:/rootfs:ro \ --name="$containerName" \ --memory=250m #{privileged} \ -v /dev/kmsg:/dev/kmsg \ -v /var/run:/var/run:rw \ -v #{dockersocketpath}/docker.sock:/var/run/docker.sock:ro \ -v /sys:/sys:ro \ -v /sys/fs/cgroup:/cgroup:ro \ -v #{dockerpath}/:/var/lib/docker:ro \ -v /dev/disk/:/dev/disk:ro \ -p #{cadvisor_ports}:8080 \ gcr.io/cadvisor/cadvisor:v0.49.1
If there is any wrong or excessive usage, please let me know your feedback.
PS: Previous configuration was this. I could not get my CPU and network data with this command. It didn't matter rootfull or rootless. However, the above command solved my problem in both environments.
docker run -v /:/rootfs:ro --name="containerName" --memory=250m #{privileged} -v #{dockersocketpath}/docker.sock:/var/run/docker.sock:ro -v /sys:/sys:ro -v /sys/fs/cgroup:/cgroup:ro -v #{dockerpath}/:/var/lib/docker:ro -p 8181:8080 gcr.io/cadvisor/cadvisor:v0.49.1
Hello, I am using Docker rootless on Rocky 8. Cgroup is v2. We switched to V2 because we could not define a limitation for containers. However, after that, we started not being able to see and collect CPU usage. We cannot understand exactly what causes the problem. I am adding here all the information I think will be useful. I hope we can reach a solution on this issue. Thank you in advance for your opinions.