How to configure proxy for NuGet while using Docker? How to configure proxy for NuGet while using Docker? docker docker

How to configure proxy for NuGet while using Docker?


Check my answer here.

Basically, you should instruct the docker build environment to use the proxy by adding build arguments like:

docker build --build-arg HTTP_PROXY=<proxy URL> --build-arg HTTPS_PROXY=<proxy URL> -t <application name>