在Windows机器上,我得到错误:Windows/amd64没有匹配的清单 [英] On windows machine I get error : No matching manifest for windows/amd64

查看:33
本文介绍了在Windows机器上,我得到错误:Windows/amd64没有匹配的清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是docker的新手,最近我在Windows 10计算机(amd/64)上安装了docker.但是在使用下面的链接时,我遇到了问题.

https://docs.microsoft.com/zh-cn/aspnet/core/host-and-deploy/docker/building-net-docker-images?view=aspnetcore-3.1

根据上述链接,如果我尝试使用image pull命令:从mcr.microsoft.com/dotnet/core/sdk:3.0 AS构建

我遇到以下错误:

清单列表中没有适用于Windows/amd64 10.0.17134的清单

我尝试了以下步骤来解决此问题:1.将docker桌面更改为Windows容器&重新启动了docker服务.2.还将参数实验的docker配置文件值也修改为true.

尽管它没有帮助我.我在这里期望的是我想使用dotnet core build + release setup创建一个Windows映像.但目前它在我的情况下不起作用.也许如果我将docker桌面更改为linux容器,它将可以工作,但这不是我想要的.

请为此提出建议解决方案,如果我的理解不清楚,请照亮.

解决方案

该错误表明您使用的Windows版本为1803(自2019年11月起不再受支持).您引用的标签是多体系结构标记,Docker客户端将其动态解析为与您的Docker主机的OS版本/体系结构匹配的映像.因为不再支持1803,所以在删除支持时已更新了 3.0 标记,以使其不再与任何1803图像相关联.这就是为什么会发生此错误的原因,因为没有针对该标签的支持Windows 1803的图像.

更麻烦的是,从2020年3月起不再支持.NET Core 3.0.

如果您真的要撤消在Windows 1803上运行的3.0映像,则可以引用以下标记: mcr.microsoft.com/dotnet/core/sdk:3.0-nanoserver-1803 .但是绝对不建议这样做,因为它使用的是不受支持的Windows 版本和的.NET Core版本.

建议将Docker机器升级到Windows的最新受支持版本(1909).还建议使用.NET Core 3.1而不是3.0,在这种情况下,您应该使用 mcr.microsoft.com/dotnet/core/sdk:3.1 .

I am new to docker , recently I have installed docker on my windows 10 machine(amd/64). But while using below link I am getting issues.

https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/docker/building-net-docker-images?view=aspnetcore-3.1

As per above link if I try to use image pull command : FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build

I get below error :

No matching manifest for windows/amd64 10.0.17134 in the manifest list entries

I tried below steps to resolve this : 1. Changed docker desktop to windows containers & restarted service of docker. 2. Also modified docker configuration file value for parameter experimental as true.

Though it did not helped me out. What I am expecting here is I want to make one windows image with dotnet core build + release setup. But currently its not working in my case. Probably if I change docker desktop to linux container it will work but this is not what i want.

Please do suggest solution for this, If my understanding is not clear do heighlight.

解决方案

The error indicates that you're using Windows, version 1803 which is no longer supported as of November 2019. The tag you're referencing is a multi-arch tag which the Docker client dynamically resolves to an image that matches the OS version/architecture of your Docker host machine. Because 1803 is no longer supported, the 3.0 tag had been updated at the time support was dropped to no longer have any 1803 images associated with it. That's why this error occurs, because there are no images supporting Windows 1803 for that tag.

To compound matters, .NET Core 3.0 is no longer supported as of March 2020.

If you really want to pull down a 3.0 image that works on Windows 1803, you could reference this tag: mcr.microsoft.com/dotnet/core/sdk:3.0-nanoserver-1803. But that is definitely not recommended because that's using an unsupported version of Windows and an unsupported version of .NET Core.

The recommendation is to upgrade your Docker machine to the latest supported version of Windows (1909). It's also recommended to use .NET Core 3.1 instead of 3.0, in which case you should use mcr.microsoft.com/dotnet/core/sdk:3.1.

这篇关于在Windows机器上,我得到错误:Windows/amd64没有匹配的清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆