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);
    }