简体   繁体   English

docker sonarqube确实无法在localhost:9000上加载

[英]docker sonarqube does fails to load on localhost:9000

I am trying to run sonarqube locally with Docker. 我正在尝试使用Docker在本地运行sonarqube。 Here are the steps I followed. 这是我遵循的步骤。

  • docker pull sonarqube 码头工人拉声呐
  • docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube:latest docker运行-d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube:latest

But I am unable to load sonarqube on localhost:9000. 但是我无法在localhost:9000上加载sonarqube。 Here are the logs from docker container. 这是docker容器中的日志。 Can someone please help? 有人可以帮忙吗?

2018.08.26 03:14:46 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2018.08.26 03:14:47 INFO  web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2018.08.26 03:14:49 INFO  web[][o.s.s.s.LogServerId] Server ID: AWV0FqFcRJaJHGjIb_AH
2018.08.26 03:14:49 INFO  web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
2018.08.26 03:14:49 INFO  web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2018.08.26 03:14:49 INFO  web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2018.08.26 03:14:49 INFO  web[][o.s.s.s.RegisterPlugins] Register plugins
2018.08.26 03:14:49 INFO  web[][o.s.s.s.RegisterMetrics] Register metrics
2018.08.26 03:14:49 INFO  web[][o.s.s.r.RegisterRules] Register rules
2018.08.26 03:14:55 INFO  web[][o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles
2018.08.26 03:14:55 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles
2018.08.26 03:14:55 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile cs/Sonar way
2018.08.26 03:14:56 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile java/Sonar way
2018.08.26 03:14:56 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile xml/Sonar way
2018.08.26 03:14:56 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile flex/Sonar way
2018.08.26 03:14:56 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way Recommended
2018.08.26 03:14:56 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way
2018.08.26 03:14:57 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Sonar way
2018.08.26 03:14:57 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile php/PSR-2
2018.08.26 03:14:57 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Drupal
2018.08.26 03:14:57 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile py/Sonar way
2018.08.26 03:14:57 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way
2018.08.26 03:14:57 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way recommended
2018.08.26 03:14:57 INFO  web[][o.s.s.s.RegisterPermissionTemplates] Register permission templates
2018.08.26 03:14:57 INFO  web[][o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys
2018.08.26 03:14:57 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@13c8701b [pattern=UrlPattern{inclusions=[/api/measures/component/*, ...], exclusions=[/api/properties*, ...]}]
2018.08.26 03:14:57 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.DeprecatedPropertiesWsFilter@6d4b07e1 [pattern=UrlPattern{inclusions=[/api/properties/*], exclusions=[]}]
2018.08.26 03:14:57 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceReroutingFilter@16e0bddb [pattern=UrlPattern{inclusions=[/api/components/bulk_update_key, ...], exclusions=[]}]
2018.08.26 03:14:57 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter@3eb3c3b1 [pattern=UrlPattern{inclusions=[/sessions/init/*], exclusions=[]}]
2018.08.26 03:14:57 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter@275b477e [pattern=UrlPattern{inclusions=[/oauth2/callback/*], exclusions=[]}]
2018.08.26 03:14:57 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LoginAction@2afead54 [pattern=UrlPattern{inclusions=[/api/authentication/login], exclusions=[]}]
2018.08.26 03:14:57 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LogoutAction@5272041d [pattern=UrlPattern{inclusions=[/api/authentication/logout], exclusions=[]}]
2018.08.26 03:14:57 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.ValidateAction@58efa7b [pattern=UrlPattern{inclusions=[/api/authentication/validate], exclusions=[]}]
2018.08.26 03:14:57 INFO  web[][o.s.s.p.Platform] WebServer is operational
2018.08.26 03:14:58 INFO  app[][o.s.a.SchedulerImpl] Process[web] is up
2018.08.26 03:14:58 INFO  app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='ce', ipcIndex=3, logFilenamePrefix=ce]] from [/opt/sonarqube]: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/*:./lib/server/*:./lib/ce/*:/opt/sonarqube/lib/jdbc/h2/h2-1.3.176.jar org.sonar.ce.app.CeServer /opt/sonarqube/temp/sq-process4444404552503534548properties
2018.08.26 03:14:58 INFO  ce[][o.s.p.ProcessEntryPoint] Starting ce
2018.08.26 03:14:58 INFO  ce[][o.s.ce.app.CeServer] Compute Engine starting up...
2018.08.26 03:14:59 INFO  ce[][o.e.p.PluginsService] no modules loaded
2018.08.26 03:14:59 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin]
2018.08.26 03:14:59 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2018.08.26 03:14:59 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2018.08.26 03:14:59 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.08.26 03:15:01 INFO  ce[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2018.08.26 03:15:01 INFO  ce[][o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
2018.08.26 03:15:01 WARN  ce[][o.s.d.DatabaseChecker] H2 database should be used for evaluation purpose only
2018.08.26 03:15:03 INFO  ce[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2018.08.26 03:15:03 INFO  ce[][o.s.c.c.CePluginRepository] Load plugins
2018.08.26 03:15:03 INFO  ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarPython [python]
2018.08.26 03:15:03 INFO  ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarC# [csharp]
2018.08.26 03:15:03 INFO  ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarJava [java]
2018.08.26 03:15:03 INFO  ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarQube :: Plugins :: SCM :: Git [scmgit]
2018.08.26 03:15:03 INFO  ce[][o.s.c.c.CePluginRepository] Loaded plugin Flex [flex]
2018.08.26 03:15:03 INFO  ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarXML [xml]
2018.08.26 03:15:03 INFO  ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarPHP [php]
2018.08.26 03:15:03 INFO  ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarTS [typescript]
2018.08.26 03:15:03 INFO  ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarQube :: Plugins :: SCM :: SVN [scmsvn]
2018.08.26 03:15:03 INFO  ce[][o.s.c.c.CePluginRepository] Loaded plugin SonarJS [javascript]
2018.08.26 03:15:04 INFO  ce[][o.s.c.q.PurgeCeActivities] Delete the Compute Engine tasks created before Tue Feb 27 03:15:04 UTC 2018
2018.08.26 03:15:05 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is operational
2018.08.26 03:15:05 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is up
2018.08.26 03:15:05 INFO  app[][o.s.a.SchedulerImpl] SonarQube is up

没关系,我发现了问题,我的码头工人正在使用其他IP。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Docker - Jenkins 无法到达 sonarqube(通过 localhost/127.0.0.1:9000) - Docker - Jenkins unable to reach sonarqube (via localhost/127.0.0.1:9000) 如何使SonarQube(在docker容器中运行)从Jenkins Pipeline连接到localhost:9000? - How to get SonarQube (running in docker container) to connect to localhost:9000 from Jenkins Pipeline? 错误:无法访问 SonarQube 服务器 [http://localhost:9000] - ERROR: SonarQube server [http://localhost:9000] can not be reached SonarQube 服务器 [http://localhost:9000] 无法访问:无法执行 SonarQube:无法从服务器下载库: - SonarQube server [http://localhost:9000] can not be reached :Unable to execute SonarQube: Fail to download libraries from server: Gitlab piepline + docker:(7)无法连接到本地主机端口 9000:连接拒绝 - Gitlab piepline + docker : (7) Failed to connect to localhost port 9000: Connection refuse docker运行启动容器但localhost无法加载(Windows 10) - docker running splash container but localhost does not load (windows 10) docker 中的 nginx 无法与本地主机对话 - nginx in docker fails to talk to localhost Sonarqube docker容器无法重新启动,离线 - Sonarqube docker container fails to restart, offline 如何从 docker 中的 jupyter 连接到 http://localhost:9000/api/v1/data - how to connect to http://localhost:9000/api/v1/data from jupyter in docker Docker,Nginx,本地主机没有响应 - Docker, Nginx, localhost does not respond
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM