public function containerCreate($config, $name = null)
    {
        return $this->postJson(
            $this->uri->expand(
                '/containers/create{?name}',
                array(
                    'name' => $name
                )
            ),
            $config
        )->then(array($this->parser, 'expectJson'));
    }
public function containerCreate($config, $name = null)
    {
        return $this->postJson(
            $this->uri->expand(
                '/containers/create{?name}',
                array(
                    'name' => $name
                )
            ),
            $config
        )->then(array($this->parser, 'expectJson'));
    }
public function containerCreate ( $ config , $ name = null ) { return $ this -> postJson ( $ this -> uri -> expand ( '/containers/create{?name}' , array ( 'name' => $ name ) ) , $ config ) -> then ( array ( $ this -> parser , 'expectJson' ) ) ; }
Create a container

@param array       $config e.g. `array('Image' => 'busybox', 'Cmd' => 'date')` (see link)
@param string|null $name   (optional) name to assign to this container
@return PromiseInterface Promise<array> container properties `array('Id' => $containerId', 'Warnings' => array())`
@link https://docs.docker.com/reference/api/docker_remote_api_v1.15/#create-a-container
Create a container