运行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 …
Run Code Online (Sandbox Code Playgroud)