src/Containers.php
/**
     * Start a container
     *
     * @param string $id         ID or name of the container
     * @param string $detachKeys Override the key sequence for detaching a container. Format is a
                                 single character `[a-Z]` or `ctrl-<value>` where `<value>` is one
                                 of: `a-z`, `@`, `^`, `[`, `,` or `_`.
     * @return void
     * @throws DockerException
     * @throws \GuzzleHttp\Exception\GuzzleException
     * @noinspection PhpFullyQualifiedNameUsageInspection
     */
Start a container
@param string $id         ID or name of the container
@param string $detachKeys Override the key sequence for detaching a container.
Start a container @param string $id ID or name of the container @param string $detachKeys Override the key sequence for detaching a container .
public function start(string $id, string $detachKeys = '')
    {
        $queryParams = [];
        if (!empty($detachKeys)) {
            $queryParams['detachKeys'] = $detachKeys;
        }
        $response = $this->client->post("/containers/{$id}/start", [
            'query' => $queryParams
        ]);
        $this->handlerStatusCode($response, [204, 304]);
    }
public function start ( string $ id , string $ detachKeys = '' ) { $ queryParams = [ ] ; if ( ! empty ( $ detachKeys ) ) { $ queryParams [ 'detachKeys' ] = $ detachKeys ; } $ response = $ this -> client -> post ( " /containers/ { $ id } /start " , [ 'query' => $ queryParams ] ) ; $ this -> handlerStatusCode ( $ response , [ 204 , 304 ] ) ; }
Start a container
 @param string $id         ID or name of the container
 @param string $detachKeys Override the key sequence for detaching a container.
Start a container @param string $id ID or name of the container @param string $detachKeys Override the key sequence for detaching a container .