SonarQube docker 容器无法启动,elasticsearch 问题

问题描述 投票:0回答:2

我正在尝试在本地运行官方 SonarQube Docker 容器。我正在使用此处提供的命令: https://hub.docker.com/_/sonarqube/

启动后约1分钟退出。日志报告 Elasticsearch 连接问题

2017.09.05 08:16:40 INFO  web[][o.e.client.transport] [Edwin Jarvis] failed to connect to node [{#transport#-1}{127.0.0.1}{127.0.0.1:9001}], removed from nodes list
org.elasticsearch.transport.ConnectTransportException: [][127.0.0.1:9001] connect_timeout[30s]
.....
Caused by: java.net.ConnectException: Connection refused: /127.0.0.1:9001
.....
    ... 3 common frames omitted
2017.09.05 08:17:10 INFO  app[][o.s.a.SchedulerImpl] Process [web] is stopped
2017.09.05 08:17:10 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
docker sonarqube
2个回答
4
投票

事实证明 SonarQube 容器没有足够的资源。我关闭了其他 docker 容器,现在它对我有用了。


0
投票

对我来说这是因为系统设置

vm.max_map_count

该值应至少为 262144。更多详细信息请参阅 文档

Linux机器中,可以在文件中添加配置

/etc/sysctl.conf

© www.soinside.com 2019 - 2024. All rights reserved.