public static function inContainer(): bool
    {
        if (file_exists(self::CGROUP_FILE)
            && ($content = file_get_contents(self::CGROUP_FILE))
            && preg_match(self::CGROUP_PATTERN, $content)) {
            return true;
        }
        return false;
    }