简体   繁体   English

Docker 中 dotnet/aspnet:3.1 的清单条目中没有与 windows/amd64 10.0.14393 匹配的清单

[英]no matching manifest for windows/amd64 10.0.14393 in the manifest list entries for dotnet/aspnet:3.1 in Docker

I was trying to build the docker image in AzureDevOps.我试图在 AzureDevOps 中构建 docker 映像。 However on release pipeline I receive below error message while building the docker imamge:但是在发布管道上,我在构建 docker 图像时收到以下错误消息:

Step 1/30 : FROM mcr.microsoft.com/dotnet/aspnet:3.1 AS base
3.1: Pulling from dotnet/aspnet
no matching manifest for windows/amd64 10.0.14393 in the manifest list entries

I have checked in Docker Hub, that mcr.microsoft.com/dotnet/aspnet:3.1 is the latest available image.我检查了 Docker Hub, mcr.microsoft.com/dotnet/aspnet:3.1 aspnet:3.1 是最新的可用图像。

Reference from: https://hub.docker.com/_/microsoft-dotnet-aspnet参考自: https://hub.docker.com/_/microsoft-dotnet-aspnet

And I have build the image in local, it was build succeeded without any problem.而且我已经在本地构建了图像,它构建成功没有任何问题。 Below are my dockerfile:下面是我的 dockerfile:

FROM mcr.microsoft.com/dotnet/aspnet:3.1 AS base
WORKDIR /app
EXPOSE 80

ENV ASPNETCORE_ENVIRONMENT #{environment-profile}#

FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build
WORKDIR /src
COPY ["Api/Api.csproj", "Api/"]
RUN dotnet restore "Api/Api.csproj"
COPY . .
WORKDIR "/src/Api"
RUN dotnet build "Api.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "Api.csproj" -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Api.dll", "--environment=#{environment-profile}#"]

Is there anything that I missed to cause that it couldn't found the image?有什么我错过的东西导致它找不到图像吗?

Appreciate if anyone could help.感谢是否有人可以提供帮助。 Thank you.谢谢你。

Ok found the problem... The agent job in Azure DevOps should be changed to Linux.好的,发现问题... Azure DevOps 中的代理作业应更改为 Linux。 I changed to Ubuntu16.04 then it works.我改成 Ubuntu16.04 然后就可以了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Docker:“清单列表条目中没有与 windows/amd64 匹配的清单” - Docker: "no matching manifest for windows/amd64 in the manifest list entries" 清单列表条目中没有与 windows/amd64 10.0.17134 匹配的清单 - no matching manifest for windows/amd64 10.0.17134 in the manifest list entries 清单列表条目中没有与 windows/amd64 10.0.16299 匹配的清单 - no matching manifest for windows/amd64 10.0.16299 in the manifest list entries docker windows 服务器 2016 上的清单列表条目中没有适用于 windows/amd64 的匹配清单 - no matching manifest for windows/amd64 in the manifest list entries on docker windows server 2016 Docker Node js 中的“清单列表条目中的 windows/amd64 10.0.17134 没有匹配的清单” - Docker “no matching manifest for windows/amd64 10.0.17134 in the manifest list entries” in Node js 如何切换 Docker 模式(Linux/Windows)? 清单列表条目中没有匹配的 linux/amd64 清单 - How to switch Docker mode(Linux/Windows)? no matching manifest for linux/amd64 in the manifest list entries aspnetcore-runtime:从 microsoft/dotnet 中提取的清单列表条目中没有与 windows/amd64 10.0.17134 匹配的清单 - aspnetcore-runtime: Pulling from microsoft/dotnet no matching manifest for windows/amd64 10.0.17134 in the manifest list entries 拉取 hello-world 图像时清单列表条目错误中没有 windows/amd64 10.0.16299 的匹配清单 - no matching manifest for windows/amd64 10.0.16299 in the manifest list entries error on pulling hello-world image 获取:清单列表条目中没有与 windows/amd64 10.0.18362 匹配的清单 - Getting : no matching manifest for windows/amd64 10.0.18362 in the manifest list entries 错误 Status: no matching manifest for windows/amd64 10.0.17763 in the manifest list entries, Code: 1 的原因是什么? - What is the reason of error Status: no matching manifest for windows/amd64 10.0.17763 in the manifest list entries, Code: 1?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM