Confluent Kafka & docker-compose - error running example

时间秒杀一切 提交于 2020-06-17 02:01:06

问题


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:

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.

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

There is no mention of cpallinone_default anywhere in the docs. Can anyone please advise?


回答1:


You should use docker-compose up. It will create the default network.

See https://docs.docker.com/compose/networking/ for more details

(in single-node, it used host network so you didn't had this problem)



来源:https://stackoverflow.com/questions/42211544/confluent-kafka-docker-compose-error-running-example

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!