我有SonarQube和詹金斯dockerized(他们是在不同的容器中运行); 声纳是在本地主机上运行:9000和詹金斯是在本地主机上运行:8080。 我配置了声纳凭证(与ACCES令牌)的詹金斯,但我跑得SonarScanner当我被SonarScaner对詹金斯得到以下错误:
ERROR: SonarQube server [http://localhost:9000] can not be reached
INFO: ----------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ----------------------------------------------------------------
INFO: Total time: 0.358s
INFO: Final Memory: 4M/119M
INFO: ----------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: Unable to execute SonarQube
ERROR: Caused by: Fail to get bootstrap index from server
ERROR: Caused by: Failed to connect to localhost/127.0.0.1:9000
ERROR: Caused by: Connection refused (Connection refused)
泊坞窗:
我怎么能解决这个问题,还是让这两个容器彼此之间的沟通?