首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >运行docker sonarscanner begin命令时出错

运行docker sonarscanner begin命令时出错
EN

Stack Overflow用户
提问于 2021-04-07 07:18:50
回答 1查看 108关注 0票数 0

我为sonarqube调出了最新的docker图像,图像运行正常。sonarqube服务器正在监听localhost:9000。当我运行dotnet sonarscanner begin来分析asp.net Core3.1项目时,过了一段时间后,我得到了超时错误。下面是该命令的日志

代码语言:javascript
复制
Using the .NET Core version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
18:47:29.653  Updating build integration targets...
18:49:09.803  Failed to request and parse 'http://localhost:9000/api/server/version': The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
18:49:09.811  The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
18:49:09.814  Pre-processing failed. Exit code: 1

API请求通过Postman工作得很好。失败的原因可能是什么?

EN

回答 1

Stack Overflow用户

发布于 2021-08-02 07:53:42

在我尝试将端口9000更改为8000并重试后,它工作了!

代码语言:javascript
复制
ports:
  - "8000:9000"
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66977675

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档