【发布时间】:2021-02-09 11:54:58
【问题描述】:
我正在尝试在 Azure DevOps 上基于 windows:1909 构建 Docker 映像并将其发布到 Azure 注册表。我已经根据 DevOps 提供的模板设置了一个基本管道,将构建器 VM 更改为 windows-latest,但是当我尝试运行它时,我得到以下信息:
Step 1/43 : FROM mcr.microsoft.com/windows:1909
1909: Pulling from windows
no matching manifest for windows/amd64 10.0.17763 in the manifest list entries
我的管道如下:
trigger:
- main
resources:
- repo: self
variables:
# Container registry service connection established during pipeline creation
dockerRegistryServiceConnection: '<redacted>'
imageRepository: '<redacted>'
containerRegistry: '<redacted>'
dockerfilePath: '$(Build.SourcesDirectory)/Dockerfile'
tag: '$(Build.BuildId)'
# Agent VM image name
vmImageName: 'windows-latest'
stages:
- stage: Build
displayName: Build and push stage
jobs:
- job: Build
displayName: Build
pool:
vmImage: $(vmImageName)
steps:
- task: Docker@2
displayName: Build and push an image to container registry
inputs:
command: buildAndPush
repository: $(imageRepository)
dockerfile: $(dockerfilePath)
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
我在网上找到的大多数建议是“设置 Docker 以运行 Windows 容器”,但这不是我在 Azure 上可以做的——或者我可以吗?
【问题讨论】:
标签: azure docker azure-devops