public function top(?string $id, string $ps_args = '-ef')
    {
        $url = self::$base_url.'/'.$id ?? $this->container_id.'/'.__FUNCTION__.'?'.http_build_query(['ps_args' => $ps_args]);

        return self::$curl->get($url);
    }
public function top(?string $id, string $ps_args = '-ef')
    {
        $url = self::$base_url.'/'.$id ?? $this->container_id.'/'.__FUNCTION__.'?'.http_build_query(['ps_args' => $ps_args]);

        return self::$curl->get($url);
    }
public function top ( ? string $ id , string $ ps_args = '-ef' ) { $ url = self :: $ base_url . '/' . $ id ?? $ this -> container_id . '/' . __FUNCTION__ . '?' . http_build_query ( [ 'ps_args' => $ ps_args ] ) ; return self :: $ curl -> get ( $ url ) ; }
List processes running inside a container.

On Unix systems, this is done by running the ps command. This endpoint is not supported on Windows.

@param string|null $id
@param string      $ps_args

@return mixed 200

@throws Exception
List processes running inside a container .