mirror of
https://github.com/SigNoz/signoz.git
synced 2026-08-06 05:00:42 +01:00
* fix(version): detect docker under private cgroup namespaces Docker defaults containers to a private cgroup namespace on cgroup v2 hosts (20.10+), which remaps /proc/self/cgroup to "0::/" and defeats the runtime-name sniff, so compose installs report deployment.mode=unknown. Check the container manager marker files (/run/.containerenv, /.dockerenv) and the container env var first, mirroring systemd's detect_container, and fall back to mountinfo when the cgroup path is namespaced away. * fix(version): drop the docker case from the container env check docker never sets the container variable; /.dockerenv already covers it