protected function getServiceContainerId($container)
    {
        if (!isset($container)) {
            return false;
        }
        /** @var Ps $task */
        $task = $this->taskDockerComposePs();

        $result = $this->runSilentCommand(
            $task->setService($container)->quiet()
        );

        if ($result->getExitCode() !== ResultData::EXITCODE_OK) {
            return false;
        }

        return $result->getMessage();
    }
protected function getServiceContainerId($container)
    {
        if (!isset($container)) {
            return false;
        }
        /** @var Ps $task */
        $task = $this->taskDockerComposePs();

        $result = $this->runSilentCommand(
            $task->setService($container)->quiet()
        );

        if ($result->getExitCode() !== ResultData::EXITCODE_OK) {
            return false;
        }

        return $result->getMessage();
    }
protected function getServiceContainerId ( $ container ) { if ( ! isset ( $ container ) ) { return false ; } /** @var Ps $task */ $ task = $ this -> taskDockerComposePs ( ) ; $ result = $ this -> runSilentCommand ( $ task -> setService ( $ container ) -> quiet ( ) ) ; if ( $ result -> getExitCode ( ) !== ResultData :: EXITCODE_OK ) { return false ; } return $ result -> getMessage ( ) ; }
Get service container identifier.

@param string $container
The container name.

@return bool|string
Return container id; otherwise false if error occurred.
Get service container identifier .