简体   繁体   English

如何在Docker Hub中过滤基于Windows或Linux的容器?

[英]How can I filter on Windows-based or Linux-based containers within Docker Hub?

I recently started exploring the wonderful world of containers. 我最近开始探索美妙的容器世界。 Obviously boot2docker enables us for quite some time now to run Linux-based containers on a Windows platform. 很显然,boot2docker使我们在相当长的一段时间内可以在Windows平台上运行基于Linux的容器。 Recently Microsoft has released native Windows-based container support as part of their new OS platforms Windows Server 2016 and Windows 10 Pro and up, which enables us to run native Windows containers! 最近,Microsoft发布了基于Windows的本机容器支持,作为其新操作系统平台Windows Server 2016和Windows 10 Pro及更高版本的一部分,这使我们能够运行本机Windows容器! See https://docs.microsoft.com/en-us/virtualization/windowscontainers/ 请参阅https://docs.microsoft.com/en-us/virtualization/windowscontainers/

First thing that I noticed is that the available container images on Docker Hub are not interchangable. 我注意到的第一件事是Docker Hub上的可用容器映像不可互换。 One needs to pick a Linux-based container image for the Linux-based Docker/container host and a Windows-based container image for the Windows-based container host. 人们需要为基于Linux的Docker /容器主机选择基于Linux的容器映像,为基于Windows的容器主机选择基于Windows的容器映像。 Ie: 即:

  • When one tries to install a Windows-based container on a Linux-based container host you will get the error message unknown blob . 当试图在基于Linux的容器主机上安装基于Windows的容器时,您将收到错误消息unknown blob Just try to install the image https://hub.docker.com/r/microsoft/aspnet/ yourself. 只是尝试自己安装映像https://hub.docker.com/r/microsoft/aspnet/
  • When one tries to install a Linux-based container on a Windows-based container host you will get the error message image operating system "linux" cannot be used on this platform . 当试图在基于Windows的容器主机上安装基于Linux的容器时,您将收到错误消息image operating system "linux" cannot be used on this platform Eg just pick https://hub.docker.com/_/jenkins/ 例如,选择https://hub.docker.com/_/jenkins/

That leads to my question: I find it quite difficult, within Docker Hub, to find the suitable container image for the right platform. 这导致了我的问题:我发现在Docker Hub中为正确的平台找到合适的容器图像非常困难。 Is there a way to filter on the required container base? 有没有办法过滤所需的容器基础?

OK, I just found out that there is a new platform called Docker Store, https://store.docker.com/ 好的,我刚发现有一个名为Docker Store的新平台, https: //store.docker.com/

They provide the filter I was looking for: 他们提供我正在寻找的过滤器:

Docker Store OS过滤器

Regrettably one can only filter the official store templates/registry. 遗憾的是,只能过滤官方商店模板/注册表。 When browsing through the community templates, the filter option is greyed out. 浏览社区模板时,过滤器选项显示为灰色。

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

相关问题 如何提高在 Windows 10 上运行 R 脚本的基于 Linux 的 Docker 桌面容器的性能? - How can I improve the performance of Linux-based Docker Desktop containers running R scripts on Windows 10? 在基于 Linux 的发行版上签署 Windows 应用程序 - Signing Windows application on Linux-based distros 如何为window构建一个基于linux的程序? - how to build a linux-based program for window? 基于Linux的固件,如何实现更新的好方法? - Linux-Based Firmware, how to implement a good way to update? 通过调制解调器连接到基于 Linux 的服务器 - Connecting to a Linux-based server over a modem 基于Linux的域管理解决方案? - Linux-based solution for domain management? 基于Linux的RDBMS,用于偶尔连接的复制 - Linux-based RDBMS for Occasionally Connected Replication 如何访问在Windows OS的Docker工具箱Linux容器中创建的项目目录? - How can I access the project directories that are created in the Docker toolbox Linux containers on my Windows OS? C#Windows窗体应用程序无法从基于Linux的服务器正确读取文件 - C# Windows Form Application not reading files correctly from Linux-based server WCF服务可以向基于Linux的C ++客户端应用程序提供发布/订阅活动吗? - Can a WCF Service provide publish/subscribe activity to a Linux-based C++ client application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM