src/Containers.php
/**
     * Create a container
     *
     * @param string $name Assign the specified name to the container. Must match `/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`.
     * @param array $options
     *
     * @return void
     * @throws DockerException
     * @throws \GuzzleHttp\Exception\GuzzleException
     * @noinspection PhpFullyQualifiedNameUsageInspection
     */
Create a container
@param string $name Assign the specified name to the container.


Create a container @param string $name Assign the specified name to the container .
public function create(string $name, array $options = [])
    {
        $response = $this->client->post('/containers/create', [
            'query' => [
                'name' => $name
            ],
            'json' => $options
        ]);
        $this->handlerStatusCode($response, [201]);
    }
public function create ( string $ name , array $ options = [ ] ) { $ response = $ this -> client -> post ( '/containers/create' , [ 'query' => [ 'name' => $ name ] , 'json' => $ options ] ) ; $ this -> handlerStatusCode ( $ response , [ 201 ] ) ; }
Create a container
 @param string $name Assign the specified name to the container.
Create a container @param string $name Assign the specified name to the container .