[英]How to pull windows nano server docker image successfully in windows server 2016?
I need to run a nano server docker image in windows server 2016, but whenever I am trying to pull the image is going to retrying..mode I need some suggestion to solve it.我需要在 Windows Server 2016 中运行 nano server docker 映像,但是每当我尝试拉取映像时都会重试..mode 我需要一些建议来解决它。 The command is : docker pull mcr.microsoft.com/windows/nanoserver:10.0.14393.953命令是:docker pull mcr.microsoft.com/windows/nanoserver:10.0.14393.953
The "latest" tag is no longer available, and per Microsoft's indications on container/host compatibility , you will not be able to use any container image with a kernel version newer than the host's (Windows Server 2016). “最新”标签不再可用,每微软的集装箱/主机兼容性迹象,你将无法使用任何容器的图像与内核版本比主机的(在Windows Server 2016)更新。 That is the meaning of the error that you mention in the comments:这就是您在评论中提到的错误的含义:
If I use 1909 as tag it's throwing an error as no matching manifest for windows/amd64 10.0.14393 in the manifest list entries that's why I am using the above the tag如果我使用 1909 作为标签,它会抛出一个错误,因为在清单列表条目中没有与 windows/amd64 10.0.14393匹配的清单,这就是为什么我使用上面的标签
The solution is to use images with the same Windows version, which are currently tagged as:解决方案是使用具有相同 Windows 版本的图像,这些图像当前标记为:
mcr.microsoft.com/windows/servercore:ltsc2016
mcr.microsoft.com/windows/nanoserver:sac2016
Note that the Nano Server tag was unlisted (as it was EOLed on October 2018) and in order to actually find it in the list you have to go into the full tags list .请注意,Nano Server 标签未列出(因为它已于 2018 年 10 月停产),为了在列表中实际找到它,您必须进入完整标签列表。 You should consider it deprecated and subject to removal without prior notice.您应该认为它已被弃用,并且可能会被删除,恕不另行通知。
Finally, the 1607/sac2016 version of Nano Server is significantly different to later versions (esp. 1803 onwards) in that it is much bigger (1.1GB in sac2016 vs 260MB in 1909) but it also includes many functionalities that were removed in later versions, like PowerShell.最后,1607/sac2016 版本的 Nano Server 与更高版本(尤其是 1803 以后的版本)有很大不同,因为它要大得多(sac2016 中为 1.1GB,而 1909 年为 260MB),但它还包括许多在更高版本中被删除的功能,就像 PowerShell。 Thus, be careful if you plan on writing Dockerfiles that you want to be able to build FROM a Nano Server image in both your system and in later versions.因此,如果您打算编写 Dockerfiles,并且希望能够在您的系统和更高版本中从 Nano Server 映像构建,请务必小心。 This may not be a big concern because newer versions of Windows are able to run the the older Nano Server container anyway, but if you plan on making your Dockerfile public people will probably question why you are using an EOLed large image as your base instead of a newer, slimmer one.这可能不是一个大问题,因为新版本的 Windows 无论如何都能够运行旧的 Nano Server 容器,但是如果您打算将 Dockerfile 公之于众,人们可能会质疑为什么您使用 EOL 大图像作为基础而不是一种更新的、更苗条的。
There is no latest tag for this image此图片没有最新标签
Try尝试
docker pull mcr.microsoft.com/windows/nanoserver:1909
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.