[英]Confluent Kafka & docker-compose - error running example
I'm trying to run the Confluent Platform all in one example using Docker Compose.我正在尝试使用 Docker Compose 在一个示例中运行 Confluent Platform。 The example of using it with a single node is here:
将它与单个节点一起使用的示例如下:
http://docs.confluent.io/3.1.1/cp-docker-images/docs/quickstart.html#getting-started-with-docker-compose http://docs.confluent.io/3.1.1/cp-docker-images/docs/quickstart.html#getting-started-with-docker-compose
The git repository with all the Docker images also has a load of other examples, including one which is supposed to provide the Control panel etc, as detailed here: http://docs.confluent.io/3.1.2/cp-docker-images/docs/intro.html#choosing-the-right-images .包含所有 Docker 映像的 git 存储库还包含大量其他示例,包括应该提供控制面板等的示例,详情如下: http : //docs.confluent.io/3.1.2/cp-docker-图像/docs/intro.html#choosing-the-right-images 。
Running the simple example works fine.运行简单的例子工作正常。 When I try to run the
cp-all-in-one
example ( link to GitHub ), I get the following error on running sudo docker-compose start
( sudo docker-compose create
runs without error):当我尝试运行
cp-all-in-one
示例( 指向 GitHub 的链接)时,在运行sudo docker-compose start
出现以下错误( sudo docker-compose create
运行没有错误):
Starting zookeeper ... error
Starting broker ... error
Starting schema_registry ... error
Starting connect ... error
Starting control-center ... error
ERROR: for control-center network cpallinone_default not found
ERROR: for zookeeper network cpallinone_default not found
ERROR: for broker network cpallinone_default not found
ERROR: for schema_registry network cpallinone_default not found
ERROR: for connect network cpallinone_default not found
No containers to start
There is no mention of cpallinone_default
anywhere in the docs.文档中的任何地方都没有提到
cpallinone_default
。 Can anyone please advise?任何人都可以请指教吗?
You should use docker-compose up.您应该使用 docker-compose up。 It will create the default network.
它将创建默认网络。
See https://docs.docker.com/compose/networking/ for more details有关更多详细信息,请参阅https://docs.docker.com/compose/networking/
(in single-node, it used host network so you didn't had this problem) (在单节点中,它使用主机网络,所以你没有这个问题)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.