首页 > 解决方案 > 运行 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.

标签: .netdockernuget

解决方案


很抱歉没有回到这个问题。这似乎不再是一个问题,它似乎已经纠正了一个我不太记得的原因,但我怀疑这是由于与我的 Internet 的网络连接。


推荐阅读