Dot-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 的網路連接。