public function logs(string $id,
                         bool $follow = false,
                         bool $stdout = true,
                         bool $stderr = false,
                         int $since = 0,
                         int $until = 0,
                         bool $timestamps = false,
                         string $tail = 'all')
    {
        $url = self::$base_url.'/'.($id ?? $this->container_id).'/'.__FUNCTION__.'?'.http_build_query(compact(
            'follow', 'stdout', 'stderr', 'since', 'until', 'timestamps', 'tail'
        ));

        return self::$curl->get($url);
    }
public function logs(string $id,
                         bool $follow = false,
                         bool $stdout = true,
                         bool $stderr = false,
                         int $since = 0,
                         int $until = 0,
                         bool $timestamps = false,
                         string $tail = 'all')
    {
        $url = self::$base_url.'/'.($id ?? $this->container_id).'/'.__FUNCTION__.'?'.http_build_query(compact(
            'follow', 'stdout', 'stderr', 'since', 'until', 'timestamps', 'tail'
        ));

        return self::$curl->get($url);
    }
public function logs ( string $ id , bool $ follow = false , bool $ stdout = true , bool $ stderr = false , int $ since = 0 , int $ until = 0 , bool $ timestamps = false , string $ tail = 'all' ) { $ url = self :: $ base_url . '/' . ( $ id ?? $ this -> container_id ) . '/' . __FUNCTION__ . '?' . http_build_query ( compact ( 'follow' , 'stdout' , 'stderr' , 'since' , 'until' , 'timestamps' , 'tail' ) ) ; return self :: $ curl -> get ( $ url ) ; }
Get container logs.

Get stdout and stderr logs from a container.

Note: This endpoint works only for containers with the json-file or journald logging driver.

@param string|null $id
@param bool        $follow
@param bool        $stdout
@param bool        $stderr
@param int         $since
@param int         $until
@param bool        $timestamps
@param string      $tail

@return mixed 101 200

@throws Exception
Get container logs .