报错如下
/usr/share/dotnet/sdk/5.0.302/NuGet.targets(131,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/src/ApiServer/ApiServer.csproj]
/usr/share/dotnet/sdk/5.0.302/NuGet.targets(131,5): error : The HTTP request to ‘GET https://api.nuget.org/v3/index.json‘ has timed out after 100000ms. [/src/ApiServer/ApiServer.csproj]
The command ‘/bin/sh -c dotnet restore "ApiServer/ApiServer.csproj"‘ returned a non-zero code: 1
//添加--network=host
docker build -t net5test -f Dockerfile . --network=host