Open nikban95 opened 1 year ago
I seem to be seeing this issue too. and my coworker is able to reproduce it. I have submitted a support ticket.
same
Setting the HTTPS_PROXY
env variable using export HTTPS_PROXY=http://proxy.host.com:8080
as described in https://docs.docker.com/desktop/settings/mac/#proxies solved the issue for me.
There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale
comment.
If not, this issue will be closed in 30 days.
Prevent issues from auto-closing with a /lifecycle frozen
comment.
/lifecycle stale
/remove-lifecycle stale /lifecycle frozen
Also having this issue. I'm wondering if this is caused by this...
https://docs.docker.com/desktop/settings/mac/#proxies
If the host uses a HTTP/HTTPS proxy configuration (static or via Proxy Auto-Configuration), Docker Desktop reads this configuration and automatically uses these settings for logging into Docker, for pulling and pushing images, and for container Internet access.
What is not clear is the order of precedence and how any proxy auto-configuration can be overridden. If auto-configuration does take precedence, it is not clear as a lot of folks are banging their heads on why their Docker Desktop proxy config is not being picked up.
I have also encountered this problem, and currently it has not been well resolved.
He did not automatically add it to the container.
Refer to the docs: https://docs.docker.com/network/proxy/
I resolved the issue by editing ~/.docker/config.json
:
"proxies": {
"default": {
"httpProxy": "http://host.docker.internal:7890",
"httpsProxy": "http://host.docker.internal:7890",
"noProxy": "*.test.example.com,.example.org,127.0.0.0/8"
}
}
Note that you should use host.docker.internal
instead of 127.0.0.1
.
Refer to the docs: https://docs.docker.com/network/proxy/
I resolved the issue by editing
~/.docker/config.json
:"proxies": { "default": { "httpProxy": "http://host.docker.internal:7890", "httpsProxy": "http://host.docker.internal:7890", "noProxy": "*.test.example.com,.example.org,127.0.0.0/8" } }
Note that you should use
host.docker.internal
instead of127.0.0.1
.
I appreciate the workaround, but we shouldn't be having to do this 14 months later. Can Docker please fix this already?
I tried all workarounds today, but nothing works
Refer to the docs: https://docs.docker.com/network/proxy/
I resolved the issue by editing
~/.docker/config.json
:"proxies": { "default": { "httpProxy": "http://host.docker.internal:7890", "httpsProxy": "http://host.docker.internal:7890", "noProxy": "*.test.example.com,.example.org,127.0.0.0/8" } }
Note that you should use
host.docker.internal
instead of127.0.0.1
.
You save my day! That's just unreasonable why this config json is not shown in desktop settings
Expected behavior
Proxy settings should not be ignored.
Actual behavior
I'm behind a corporate proxy and use a locally running cisco anyconnect to connect with the corporate proxy. In the Docker Desktop dashboard under "Settings" -> "Resources" -> "PROXIES," I switch on "Manual proxy configuration" and set the addresses of "Web Server (HTTP)" and "Secure Web Server (HTTPS)" pointing to my corporate vpn address.
This seems to be ignored by docker and I still cannot access the docker registry if trying one of the examples:
Also in docker info, the proxy doesn't seem to be set. Please find the output of docker info below:
Information
Steps to reproduce the behavior
See above