protected function hasDockerContainer($name)
    {
        /** @var ResultData $result */
        $result = $this->runSilentCommand(
            $this->taskExec("docker ps --filter='name={$name}' -q")
        );
        $output = $result->getMessage();

        return isset($output) && !empty($output);
    }
protected function hasDockerContainer($name)
    {
        /** @var ResultData $result */
        $result = $this->runSilentCommand(
            $this->taskExec("docker ps --filter='name={$name}' -q")
        );
        $output = $result->getMessage();

        return isset($output) && !empty($output);
    }
protected function hasDockerContainer ( $ name ) { /** @var ResultData $result */ $ result = $ this -> runSilentCommand ( $ this -> taskExec ( "docker ps --filter='name={$name}' -q" ) ) ; $ output = $ result -> getMessage ( ) ; return isset ( $ output ) && ! empty ( $ output ) ; }
Has the docker container been defined.

@param $name
The container name.

@return bool
Has the docker container been defined .