简体   繁体   English

在Windows 10上安装Kafka docker镜像(在Windows容器模式下)

[英]Install Kafka docker image on windows 10 (in Windows Container mode)

I am trying to install Kafka docker image on windows 10, but it is always saying "image operating system "linux" cannot be used on this platform". 我试图在Windows 10上安装Kafka docker镜像,但它总是说“图像操作系统”linux“不能在这个平台上使用”。

Note: I am in "Windows container mode". 注意:我处于“Windows容器模式”。

Although, if I change the docker setting "Switch to Linux containers", then there are various images on docker like spotify/kafka, wurstmeister/kafka which I am able to install. 虽然,如果我更改docker设置“切换到Linux容器”,那么docker上有各种图像,如spotify / kafka,wurstmeister / kafka,我可以安装。

Question: Do we have an image of kafka on docker hub which can be install on windows while in Winodws Container mode? 问题:我们在Docker hub上有一个kafka的图像,可以在Winodws容器模式下安装在Windows上吗?

I didn't find one - I think the reasons are: 我找不到 - 我认为原因是:

  • Everyone uses Kafka on linux for production 每个人都在Linux上使用Kafka进行制作
  • Supporting all flavours of Windows container requires a bunch of tags 支持所有类型的Windows容器需要一堆标签
  • Linux containers work with Docker CE Linux容器与Docker CE一起使用

That said, I made a dev/test windows container dockerfile for kafka which I've shared on GitHub , and you can build locally. 也就是说,我为kafka制作了一个开发/测试windows容器dockerfile,我在GitHub上共享 ,你可以在本地构建。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM