When I enable or disable webproxy or secure web proxy in System Preferences - Network the http_proxy, https_proxy env variables in docker host are not updated in all cases.
Docker for Mac does recognise when the proxy server name is removed in system preferences - network and restarts the VM, but does not recognise if the proxy is just disabled.
- the output of:
Moby Menu > Diagnose & Feedbackon OSX
Docker for Mac: version: mac-v1.12.0-beta17
OS X: version 10.11.6 (build: 15G24b)
Steps to reproduce the behavior
Webproxy and secure webproxy server and port defined and enabled in System Preferences - Network
Start docker for Mac
Check the env vars on the docker host:
-> http_proxy and https_proxy are set. That’s correct
Disable web proxy and secure web proxy in System Preferences - Network by unchecking both, but leave the server name and port.
-> http_proxy and https_proxy in the docker VM are still set. This is wrong.
Remove the proxy server name and port in System Preferences - Network.
-> Docker for Mac restarts the vm
-> http_proxy and https_proxy env vars are no longer set.