Expected behaviour
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.
Actual behaviour
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.
Information
- 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)
logs: /tmp/20160703-105726.tar.gz
[OK] docker-cli
[OK] app
[OK] menubar
[OK] virtualization
[OK] system
[OK] osxfs
[OK] db
[OK] slirp
[OK] moby-console
[OK] logs
[OK] vmnetd
[OK] env
[OK] moby
[OK] driver.amd64-linux
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.