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

后端 未结 13 1609
温柔的废话
温柔的废话 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:06

    I got this working by passing in docker build environment variables from the command line like so:

    docker build --build-arg HTTP_PROXY=http://{un}:{pw}@{proxyhost}:{port} --build-arg HTTPS_PROXY=http://{un}:{pw}@{proxyhost}:{port} -t aspnetapp .

    *note that your username must be url encoded (ei. DOMAIN\name => DOMAIN%5Cname)

提交回复
热议问题