src/Image.php
public function createStack(
        $stackName,
        array $stackOperations,
        $organization = '',
        array $stackOptions = [],
        $overwrite = false
    ) {
        $stackData = [
            'operations' => $stackOperations,
            'options' => $stackOptions,
        ];
        $stack = Stack::createFromConfig($stackName, $stackData, $organization);

        return $this->saveStack($stack, ['overwrite' => $overwrite]);
    }
public function createStack(
        $stackName,
        array $stackOperations,
        $organization = '',
        array $stackOptions = [],
        $overwrite = false
    ) {
        $stackData = [
            'operations' => $stackOperations,
            'options' => $stackOptions,
        ];
        $stack = Stack::createFromConfig($stackName, $stackData, $organization);

        return $this->saveStack($stack, ['overwrite' => $overwrite]);
    }
public function createStack ( $ stackName , array $ stackOperations , $ organization = '' , array $ stackOptions = [ ] , $ overwrite = false ) { $ stackData = [ 'operations' => $ stackOperations , 'options' => $ stackOptions , ] ; $ stack = Stack :: createFromConfig ( $ stackName , $ stackData , $ organization ) ; return $ this -> saveStack ( $ stack , [ 'overwrite' => $ overwrite ] ) ; }
Create a stack.

@deprecated 2.0.0 Use Image::saveStack() instead
@see Image::saveStack()

@param string $stackName       Name of the stack
@param array  $stackOperations Stack operations
@param string $organization    Optional organization name
@param array  $stackOptions    Stack options
@param bool   $overwrite       If an existing stack should be overwritten

@throws GuzzleException
@throws \RuntimeException

@return Stack
Create a stack .