Hi there,
I’m currently switching an application from purely install to docker container and found a really strange behavior, maybe someone of you might have an idea, what the reason could be.
Our environment is sitting behind a firewall, so every connection from inside must use a web proxy to get something from outside. So, on Linux we usually do an explicit export https_proxy=... to be able to do so.
I tried this for testing purposes with some small defaults, like hello-world or alpine, so a normal pull from the usual Docker-hubs work correctly with the proxy set via environment variable. But not so for europe-docker.pkg.dev.
Whatever I tried to do, I always ran into a timeout, regardless if the environment variable for the proxy was set via export or even ~/.docker/config.json. A colleague from our network department traced down the firewall and found out that my machine requested two IPs from outside directly, without going over the proxy. He added a rule to accept the connection for those two IP addresses (both from Google data centers) and voilá, it finally started to work, I was able to pull my image from europe-docker.pkg.dev.
What I’m now asking myself is, why does the Docker CLI do that for this one particular adress? Why isn’t it going over the proxy and tries to contact the IPs directly? Any ideas?
Our docker version is 27.5.1, build 9f9e405 (bound to our RHEL distribution).
Regards, Thomas