My organization uses a http/https proxy. Traffic to the internet must be routed via this proxy.
We're adding multi-architecture support to our jenkins pipelines which build and push the docker images. The HTTP_PROXY and HTTPS_PROXY environment variables are set for docker and working for a regular docker build, but when attempting to build for multiple architectures using the docker buildx build
command, I see the error below
failed to solve: rpc error: code = Unknown desc = amazoncorretto:11: failed to do request: Head "https://registry-1.docker.io/v2/library/amazoncorretto/manifests/11": dial tcp 44.207.96.114:443: i/o timeout
It works locally. I'm certain this is because the traffic isn't routed via the proxy. I've tried setting it via driver-opt and build-arg.