Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\app\aspnetapp.csproj]

后端 未结 13 1565
温柔的废话
温柔的废话 2021-02-12 01:45

https://github.com/dotnet/dotnet-docker-samples/tree/master/aspnetapp

Docker command docker build -t aspnetapp.

I am getting an error for docker bui

13条回答
  •  北荒
    北荒 (楼主)
    2021-02-12 02:16

    If the issue is caused by your organisation's self-signed certificates, you can fix it by:

    1. Get the certificate file (*.cer) provided by your IT department.
    2. Copy it into the SSL certificate location: COPY ["./combined.cer", "/etc/ssl/certs/"]
    3. Update SSL cert list: RUN update-ca-certificates

    These steps work for Debian, need to be adapted for other distros.

提交回复
热议问题