src/Containers.php
/**
     * Inspect a container
     *
     * Return low-level information about a container.
     *
     * @param string $id   ID or name of the container
     * @param bool   $size Return the size of container as fields `SizeRw` and `SizeRootFs`
     * @return array
     * @throws DockerException
     * @throws \GuzzleHttp\Exception\GuzzleException
     * @noinspection PhpFullyQualifiedNameUsageInspection
     */
Inspect a container
Return low-level information about a container.


Inspect a container Return low - level information about a container .
public function inspect(string $id, bool $size = false): array
    {
        $response = $this->client->get("/containers/{$id}/json", [
            'query' => [
                'size' => $size
            ]
        ]);
        $this->handlerStatusCode($response);
        return json_decode($response->getBody()->getContents(), true);
    }
public function inspect ( string $ id , bool $ size = false ) : array { $ response = $ this -> client -> get ( " /containers/ { $ id } /json " , [ 'query' => [ 'size' => $ size ] ] ) ; $ this -> handlerStatusCode ( $ response ) ; return json_decode ( $ response -> getBody ( ) -> getContents ( ) , true ) ; }
Inspect a container
 Return low-level information about a container.
Inspect a container Return low - level information about a container .