Docker Community Forums

Share and learn in the Docker community.

Curl doesn't work with proxy in docker build


(I4quest) #1

Hi,
I’m a using a http webserver to copy a zip file from host to my image and it works fine with my home network.
But, while I"m at work, i set proxy and the curl keeps failing with the error
" The system cannot communicate with the external server ( 10.0.2.15 ).
The Internet server may be busy, may be permanently down, or may be
unreachable because of network problems
GATEWAY_TIMEOUT, 10.0.2.15 "

I have this in my docker file…

ENV http_proxy=http://37.23.xx.xx:92
ENV https_proxy=https://37.23.xx.xx:92
ENV no_proxy=“localhost,127.0.0.1, .name.com”

Appreciate if anyone could help.