.net - 运行 docker-compose build 后恢复包时收到“无法建立 SSL 连接”消息
问题描述
运行 docker-compose build 后,一切都运行良好,直到还原包点,然后我收到:
无法建立 SSL 连接,请参阅内部异常。身份验证失败,因为远程方已关闭传输流。
它似乎通过拉包几乎可以工作一次,但不久之后就失败了,从那以后就失败了。在 Visual Studio 中运行 docker-compose 一切正常,它只是通过 CLI 发生的。
我重新启动了 docker,重新安装了 docker,多次重新运行命令,在不同的网络中尝试过,花了几天的时间在线研究,重新启动了机器。
Step 8/17 : RUN dotnet restore src/Services/Identity/Identity.API/Identity.API.csproj
---> Running in f3d6d7f541e3
Restoring packages for /src/src/Services/Identity/Identity.API/Identity.API.csproj...
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/serilog.aspnetcore/index.json'.
The SSL connection could not be established, see inner exception.
Authentication failed because the remote party has closed the transport stream.
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.options.configurationextensions/index.json'.
The SSL connection could not be established, see inner exception.
Authentication failed because the remote party has closed the transport stream.
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.authentication.openidconnect/index.json'.
The SSL connection could not be established, see inner exception.
Authentication failed because the remote party has closed the transport stream.
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.authentication/index.json'.
The SSL connection could not be established, see inner exception.
Authentication failed because the remote party has closed the transport stream.
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/index.json'.
The SSL connection could not be established, see inner exception.
Authentication failed because the remote party has closed the transport stream.
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.cors/index.json'.
The SSL connection could not be established, see inner exception.
Authentication failed because the remote party has closed the transport stream.
解决方案
很抱歉没有回到这个问题。这似乎不再是一个问题,它似乎已经纠正了一个我不太记得的原因,但我怀疑这是由于与我的 Internet 的网络连接。
推荐阅读
- assembly - 故意在 RISC-V 中提出非法指令
- powershell - 使用 powershell 读取文本文件并捕获数组中的内容
- python - 如何在熊猫中列出最高相关对(一个规范列与所有其他列)?
- python - 在无限循环期间更新kivy解析器应用程序中的标签
- snowflake-cloud-data-platform - 使用 Snowflake UDF 查询变更跟踪表元数据
- javascript - nginx和nestjs认证部分之间的错误
- r - 运算符如何不使用 is.numeric
- html - Windows 10 是否预装了 CSS 和 html?如果没有,我该如何安装它们
- solr - 在 Sitecore 索引管理器中重建 Solr 索引不会更新 Solr 管理中的文档数
- c# - 无法使用 Win32 API (Bluetoothapis.h) 打开/关闭蓝牙无线电设置