protected function isContainerRunning($container)
    {
        /** @var ResultData $result */
        $result = $this->runSilentCommand(
            $this->taskExec("docker inspect -f {{.State.Running}} {$container}")
        );

        return $result->getExitCode() === Resultdata::EXITCODE_OK
            && $result->getMessage() == 'true';
    }