融合卡夫卡&docker-compose - 错误运行示例 [英] Confluent Kafka & docker-compose - error running example
问题描述
我正在尝试使用 Docker Compose 在一个示例中运行 Confluent 平台.将其与单个节点一起使用的示例如下:
I'm trying to run the Confluent Platform all in one example using Docker Compose. The example of using it with a single node is here:
包含所有 Docker 镜像的 git 存储库也有大量其他示例,包括一个应该提供控制面板等的示例,详情如下:http://docs.confluent.io/3.1.2/cp-docker-images/docs/intro.html#choosing-the-right-images.
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.
运行简单的示例工作正常.当我尝试运行 cp-all-in-one
示例 (链接到 GitHub),运行 sudo docker-compose start
时出现以下错误(sudo docker-compose create
运行没有错误):
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):
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
文档中的任何地方都没有提到 cpallinone_default
.任何人都可以请教吗?
There is no mention of cpallinone_default
anywhere in the docs. Can anyone please advise?
推荐答案
你应该使用 docker-compose up.它将创建默认网络.
You should use docker-compose up. It will create the default network.
请参阅 https://docs.docker.com/compose/networking/ 了解更多详情
See https://docs.docker.com/compose/networking/ for more details
(在单节点中,它使用主机网络,所以你没有这个问题)
(in single-node, it used host network so you didn't had this problem)
这篇关于融合卡夫卡&docker-compose - 错误运行示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!