azure - 为什么 Visual Studio Online 上的 Docker "Build an image"步骤失败?

标签 azure docker azure-devops azure-pipelines

我正在尝试构建一个 Docker 镜像,该镜像似乎在我的本地计算机上构建并运行良好,但它始终失败并出现以下错误:

2018-05-06T13:56:15.2331697Z failed to register layer: re-exec error: exit status 1: output: ProcessUtilityVMImage C:\ProgramData\docker\windowsfilter\3b555fe81a5123419e06c66652d9e73adbbb17b10f52ddd9f59da3b7fb87adab\UtilityVM: The system cannot find the path specified. 2018-05-06T13:56:15.2531044Z ##[error]C:\Program Files\Docker\docker.exe failed with return code: 1

“构建镜像”步骤失败。我正在尝试使用 Azure 注册表类型。

我正在尝试使用 Visual Studio Online 设置持续部署。我选择了 Hosted 2017 构建代理(但也尝试过其他代理,但也没有成功)。

我的应用程序是.Net Core 应用程序。我认为它正在尝试使用 Nano Server,从我读到的内容来看,这可能是问题的一部分(也许托管代理不支持 Nano Server)。

所有这些技术(.NET Core、Docker、Nano Server)对我来说都是新的(可能对大多数人来说都是新的),因此我对它们的了解以及从哪里开始进行故障排除的知识有限。

有什么想法吗?

Uploaded Docker Ignore File

Docker 文件失败的步骤是这个

FROM microsoft/aspnetcore:2.0-nanoserver-1709 AS base

最佳答案

VSTS 的托管代理不支持它,请检查此问题:Docker images based on nanoserver-1709 not building on hosted VS2017 agent

关于azure - 为什么 Visual Studio Online 上的 Docker "Build an image"步骤失败?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50201406/

相关文章:

c# - Azure API 身份验证

azure - 如何检测 azure 应用程序正在开发结构中运行?

awk 无法选择具有空值的列

node.js - Azure DevOps 管道打开的文件太多

windows - Windows Azure 平台的缺点?

azure - Microsoft 帐户的用户 id 是否与 ID token 中的 oid 声明相同?

docker - 用于Confluent的Docker镜像-添加Confluent Hub连接器

docker - 如何在 Kubernetes 中配置多个服务/容器?

java - 我已经使用 docker 构建了命令并且输出成功并且我无法打开本地主机 7604

git - 企业代理 Azure Devops 与 Git