我正在尝试使用我的构建管道构建docker映像,但是docker无法获取我的构建管道托管在azure devops服务器Azure devops服务器托管在window server 2019虚拟机中的基础映像
2021-03-04T06:58:21.6816037Z ==============================================================================
2021-03-04T06:58:21.6816138Z Task : Docker
2021-03-04T06:58:21.6816209Z Description : Build, tag, push, or run Docker images, or run a Docker command. Task can be used with Docker or Azure Container registry.
2021-03-04T06:58:21.6816271Z Version : 0.3.24
2021-03-04T06:58:21.6816322Z Author : Microsoft Corporation
2021-03-04T06:58:21.6816387Z Help : [More Information](https://go.microsoft.com/fwlink/?linkid=848006)
2021-03-04T06:58:21.6816465Z ==============================================================================
2021-03-04T06:58:22.7477068Z [command]"C:\Program Files\Docker\docker.exe" build -f C:\myagent_agent\_work\7\s\hello-solution\core\Infrastructure\Docker\build\5910\Dockerfile -t myregistry.azurecr.io/myapp-hello:276 C:\heisoul2_agent\_work\7\s\hello-solution\core\Infrastructure\Docker\build\5910
2021-03-04T06:58:26.3591773Z Sending build context to Docker daemon 154.9MB
2021-03-04T06:58:26.3592364Z
2021-03-04T06:58:26.3701800Z Step 1/19 : FROM tomcat:9.0.41-jdk15-openjdk-slim-buster
2021-03-04T06:58:41.7345125Z Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2021-03-04T06:58:41.7599411Z ##[error]C:\Program Files\Docker\docker.exe failed with return code: 1
2021-03-04T06:58:41.7613038Z ##[section]Finishing: Build an image
Docker Desktop窗口窗格不显示资源部分中的选项
发布于 2021-03-05 15:29:08
发布于 2021-03-17 17:30:16
我在azure-pipeline.yml的dockertask中使用了buildArguments
buildArguments:'http_proxy=http://username:password@proxy:80‘
https://stackoverflow.com/questions/66470177
复制相似问题