https://github.com/dotnet/dotnet-docker-samples/tree/master/aspnetapp
Docker command docker build -t aspnetapp.
I am getting an error for docker bui
Had the same issue, the problem was a missing dependency used by NuGet.
I am using the microsoft/dotnet:sdk image, and it works after installing libcurl3 to my image.
Try adding
RUN apt-get update && apt-get install -y libcurl3
to your Dockerfile before restoring.
if it doesn't work, try restarting your Docker instance.
edit: if that doesn't help you, there is this open issue on the NuGet github where some people are trying to solve the same problem.
edit2:added Ignas solution: restarting docker instance.