confluentinc / cp-all-in-one

docker-compose.yml files for cp-all-in-one , cp-all-in-one-community, cp-all-in-one-cloud, Apache Kafka Confluent Platform
958 stars 684 forks source link

Starting environment fails on Mac M1 #90

Closed pekkalaaksonen closed 2 years ago

pekkalaaksonen commented 2 years ago

Description When starting the environment running docker compose up -d, all the containers start and after a while they start to exit one by one:

NAME                COMMAND                  SERVICE             STATUS              PORTS
broker              "/etc/confluent/dock…"   broker              exited (1)
connect             "/etc/confluent/dock…"   connect             exited (2)
control-center      "/etc/confluent/dock…"   control-center      exited (1)
ksql-datagen        "bash -c 'echo Waiti…"   ksql-datagen        exited (1)
ksqldb-cli          "/bin/sh"                ksqldb-cli          running
ksqldb-server       "/etc/confluent/dock…"   ksqldb-server       exited (255)
rest-proxy          "/etc/confluent/dock…"   rest-proxy          running             0.0.0.0:8082->8082/tcp
schema-registry     "/etc/confluent/dock…"   schema-registry     running             0.0.0.0:8081->8081/tcp
zookeeper           "/etc/confluent/dock…"   zookeeper           running             0.0.0.0:2181->2181/tcp

Only ksql-cli, rest-proxy, schema-registry and zookeeper remaing running. If I restart containers that had exited, broker stays up, but the others fail:

NAME                COMMAND                  SERVICE             STATUS              PORTS
broker              "/etc/confluent/dock…"   broker              running             0.0.0.0:9092->9092/tcp, 0.0.0.0:9101->9101/tcp
connect             "/etc/confluent/dock…"   connect             exited (1)
control-center      "/etc/confluent/dock…"   control-center      exited (1)
ksql-datagen        "bash -c 'echo Waiti…"   ksql-datagen        exited (1)
ksqldb-cli          "/bin/sh"                ksqldb-cli          running
ksqldb-server       "/etc/confluent/dock…"   ksqldb-server       exited (1)
rest-proxy          "/etc/confluent/dock…"   rest-proxy          running             0.0.0.0:8082->8082/tcp
schema-registry     "/etc/confluent/dock…"   schema-registry     running             0.0.0.0:8081->8081/tcp
zookeeper           "/etc/confluent/dock…"   zookeeper           running             0.0.0.0:2181->2181/tcp

Environment

ybyzek commented 2 years ago

@pekkalaaksonen for M1 discussion, please see https://github.com/confluentinc/common-docker/issues/117#issuecomment-948226917