BuildingWe are using a Jenkinsfile-based pipeline to build an image within using a _docker private docker registry.withRegistry_ section The corporate proxy has been configured in the docker config, which uses is then passed via environment variables (HTTP(S)_PROXY). It seems that specifying a private, secured docker registry fails with overwrites the proxy settings, supplied by the docker daemon, resulting in the following error message:
The issue can be reproduced with the following simple Jenkinsfile (in order to test it you would need access to a private docker registry and be behind a corporate proxy):
{code:java} node('docker') { stage("first") { sh 'echo FROM alpine > Dockerfile' sh 'echo RUN printenv >> Dockerfile' sh 'echo RUN apk add bash >> Dockerfile'