融合卡夫卡& 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存储库还包含许多其他示例,其中包括一个应提供控制面板"的示例,如此处所述:
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
示例(
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/更多详情
(在单节点中,它使用了主机网络,因此您没有此问题)
(in single-node, it used host network so you didn't had this problem)
这篇关于融合卡夫卡& docker-compose-错误运行示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!