How to build Docker Images with Dockerfile behind HTTP_PROXY by Jenkins?

后端 未结 7 1833
终归单人心
终归单人心 2020-12-23 14:54

Building Docker images works in a desktop without a problem. Installing Node.js NPM dependencies work as usual. However, when using a continuous integration server such as J

7条回答
  •  天命终不由人
    2020-12-23 15:05

    I had a problem when corporate network was not allowing to download and setup docker image so n/w gave http proxy information. while running docker image build I passed the variable and it worked without any issues.

      docker build  --build-arg http_proxy="http://userid:pwd@iaisystem.com:8080" - < Dockerfile
    

提交回复
热议问题