Hi im using Docker on windows 10 with a proxy. Docker itself works fine with the proxy IP set correctly in the docker settings. I can download images through docker.
The problem is that any container I want to run or build also needs these HTTP_PROXY and HHTPS_PROXY variables. I can do this by adding it to build arguments, run arguments or the docker file. However none of these solutions are perfect because they add machine specific variable values to either the docker files and/or the docker-compose files.
I have checked the MobyLinuxVM's values for these HTTP_PROXY and HHTPS_PROXY variables by hacking into it with this trick: How to connect to docker VM (MobyLinux) from windows shell?
Eventhough these variables were displayed correctly any image that I run or dockerfile I build still needs to get these variables.
Is there a way that any container automatically gets these proxy environment variables from the docker deamon who already has them set? I know Linux has this feature by nature, but it seems to be missing for Windows.