openshift-toolkit icon indicating copy to clipboard operation
openshift-toolkit copied to clipboard

Script does not respect a "no_proxy" env in a proxied environment

Open grimkroton opened this issue 6 years ago • 3 comments

If running this script behind a proxy, the image pull is running, but the image push to a local registry, which is reachable without a proxy, fails.

The push also uses the proxy, but the local registry is reachable without a proxy.

If a "no_proxy" env is set, the push should not use a proxy.

grimkroton avatar Aug 21 '18 11:08 grimkroton

It seems, that this is a bug in the python requests module: https://github.com/requests/requests/issues/879

grimkroton avatar Aug 21 '18 11:08 grimkroton

@grimkroton ; which script are you talking about?

garethahealy avatar Dec 19 '19 15:12 garethahealy

@garethahealy this script https://raw.githubusercontent.com/redhat-cop/openshift-toolkit/master/disconnected_registry/docker-registry-sync.py Sorry for format, answered from mobile.

grimkroton avatar Dec 19 '19 15:12 grimkroton