简体   繁体   English

如何在 windows server 2016 中成功拉取 windows nano server docker 镜像?

[英]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.

相关问题 在 Windows 10 Pro 上创建 .NET Core 3.1 应用程序的 Docker 映像并将其拉到 ZAEA23489CE3AA9B6406EBB201 - Create Docker Image of .NET Core 3.1 app on Windows 10 Pro and pull it to Windows Server 2016 为什么portainer无法在windows server 2016的docker中成功运行? - Why portainer can not run successfully in docker of windows server 2016? 在 WINDOWS 2016 服务器中拉取 Docker 图像时出错(Windows 的 docker) - ERROR IN PULLING DOCKER IMAGE IN WINDOWS 2016 SERVER (docker for windows) 使用Nano Server作为基本映像的Windows docker映像无法在Nano Server上启动Bamboo Remote Agent - Windows docker image using nano server as base image is unable to launch bamboo remote agent on nano server 在Windows Server 2016上安装Docker - Installing Docker On Windows Server 2016 Windows Server 2016 Docker镜像支持SQL Server? - Windows Server 2016 Docker image support for SQL Server? Windows Nano Server上的Docker:磁盘上没有足够的空间 - Docker on Windows Nano Server: There is not enough space on the disk Windows Server 2016 docker image默认用户名/密码 - Windows Server 2016 docker image default username/password Docker Image for Windows server 2016 with framework .NET 5.0 - Docker Image for Windows server 2016 with framework .NET 5.0 在Windows Server 2016上构建Docker映像 - Building Docker Images on Windows Server 2016
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM