【问题标题】:SonarQube docker keeps stoppingSonarQube 码头工人不断停止
【发布时间】:2021-09-29 23:17:57
【问题描述】:

我正在使用 docker 在我的机器上本地测试 SonarQube,但是 docker 容器不断停止,不知道为什么会这样。我正在使用 Mac,不确定 Java 版本是否会影响 SonarQube,但我的机器上运行的是 Java 版本 11。

这些是我得到的日志

2021.07.22 16:49:46 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp

2021.07.22 16:49:46 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:39173]

2021.07.22 16:49:46 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch

2021.07.22 16:49:47 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

2021.07.22 16:49:47 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1

2021.07.22 16:49:47 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped

2021.07.22 16:49:47 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

这是我用来运行 docker 容器的命令

docker run --name sonarqube --restart always -p 9000:9000 -d sonarqube

我错过了什么?

【问题讨论】:

    标签: docker sonarqube


    【解决方案1】:

    我将我机器上的 docker 版本更新到了最新版本(已经跳过了将近一年)并且它工作了

    【讨论】:

      猜你喜欢
      • 2016-07-27
      • 1970-01-01
      • 1970-01-01
      • 2017-02-01
      • 2023-03-02
      • 1970-01-01
      • 1970-01-01
      • 2016-01-18
      • 1970-01-01
      相关资源
      最近更新 更多