Replace single /.dockerenv check with a robust isInContainer() helper that covers Docker, Podman (/.containerenv), cgroup-based detection (containerd, LXC) and /proc/1/environ as a general fallback.
Replace single /.dockerenv check with a robust isInContainer() helper that covers Docker, Podman (/.containerenv), cgroup-based detection (containerd, LXC) and /proc/1/environ as a general fallback.