[Starlingx-discuss] [Container] docker daemon proxy issue clarification
mingyuan.qi at intel.com
Thu May 30 04:58:43 UTC 2019
Hi Bart and Tee,
To clarify the docker daemon proxy issue discussed in review comments, I move the discussion here for a clear view.
The question is, docker daemon proxy setting in starlingx is not the same as current docker doc. The difference is we in starlingx only create http-proxy.conf for HTTP_PROXY, HTTPS_PROXY, NO_PROXY setting, while the document suggests http-proxy.conf for HTTP_PROXY and https-proxy for HTTPS_PROXY. Does it impact the docker daemon proxy setting?
That might be a little confused of the terminology of above file name and environment variable name. HTTP_PROXY means all the target url requests go via this proxy server if the request type is http, and the same meaning as HTTPS_PROXY, not the proxy server type itself is http or https.
Through my test of docker daemon proxy and golang net lib (used by docker daemon proxy connection) code , the http-proxy.conf and https-proxy.conf have the same target just to set HTTP_PROXY/HTTPS_PROXY/NO_PROXY environment variables to golang net lib. The file name of the conf does not impact the proxy setting. I even renamed http-proxy.conf to test.conf and got a successful pulling from http registry and both https registry through proxy. So I don't think following current docker proxy setting doc is a must.
Moreover, as I said in the review comments, starlingx docker daemon proxy setting was the official approach(only one http-proxy.conf file) at some time in 2018, but it's disappeared. Some technical articles indicates that this setting approach is valid. Therefore, I think current starlingx approach for docker daemon proxy setting is valid and no changes needed.
The remaining question from Tee to test https proxy is not the same as above. To use a https proxy server, the setting should be:
No matter these environment variables are set in http-proxy.conf or https-proxy.conf or test.conf.
If test team has a https proxy server, this can be tested by current config mechanism.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Starlingx-discuss