-
Notifications
You must be signed in to change notification settings - Fork 773
Dragonfly with harbor behind corporate proxy #1312
Comments
Could you paste related logs in |
Appreciate the quick answer ! Unfortunately the only logs i got when doing
and from No logs from dfclient when i pull the nginx image... |
It seems that the network is not reachable from your dfclient container to curl -iv 'https://registry-1.docker.io/v2/' or you can type this command to get the error response: # note: http, not https
http_proxy=http://127.0.0.1:65001 curl -i 'http://registry-1.docker.io/v2/' |
I am not using container i did deploy on a server with the go binary, so i ran the command from the server itself to test (proxy url and IP redacted):
Which make sense because the first one use the corporate proxy but the second one is not apparently |
I see, your host cannot connect to registry without your corporate proxy, but Maybe dfdaemon should provide a flag to enable proxy, then it can send request via user's proxy. |
I think we can first try supporting environment variables like |
@inoc603 Would be awesome ! |
Seems to me that the issue is DFRoundTripper does not call ProxyFromEnvironment. A different way to fix this may be to let, NeedUseGetter() work on all URLs besides "blobs/sha256/.*" URLs so that the "GET https://index.docker.io/v2/" HTTP request will be called through dfget, which will be handled by the CDN. |
Question
Hello, i did follow the docs about dragonfly with Harbor Using dragonfly with harbor. Everything work correctly when i pull images from my private Harbor registry.
But i am unable to pull images from the public docker registry anymore. I got the following error:
and dfdaemon debugging just throw:
This is the dfdaemon configuration on one client node:
With that i did modify the docker service accordingly to the doc and this is where the issue is i think. I did modify the /etc/systemd/system/docker.service.d/https-proxy.conf and /etc/systemd/system/docker.service.d/https-proxy.conf to use dfdaemon as proxy:
But before that it was set to my corporate proxy. If i reset it to my corporate proxy value then i can pull from my private registry and from the public docker registry, but it does not use dragonfly anymore.
It seems that:
regx: blobs/sha256.*
and use dfget but it does not goes to my corporate proxy (or use system proxy) hence the service unavailableDo I understand it correctly ?
Ultimately Is there a way of configuring dragonfly to:
If you need other info or if its not clear let me know !
The text was updated successfully, but these errors were encountered: