# Unable to launch Kafka container on ARM64

**URL:** <https://forum.confluent.io/t/unable-to-launch-kafka-container-on-arm64/37725>\
**Category:** Architecture and Design\
**Created:** [3 May 2025 03:37 UTC](https://forum.confluent.io/t/unable-to-launch-kafka-container-on-arm64/37725 "2025-05-03T03:37:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chainhead](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/chainhead/32/1255_2.png) [@chainhead](https://forum.confluent.io/u/chainhead)\
**Post date:** [3 May 2025 03:37 UTC](https://forum.confluent.io/t/unable-to-launch-kafka-container-on-arm64/37725/1 "2025-05-03T03:37:35Z")

</div>

I want to launch a Kafka container with Docker Compose on Amazon EC2 instance with Graviton2 processor. Here is the service definition.

```auto
  broker:
    container_name: broker
    image: confluentinc/cp-kafka:latest.arm64
    env_file:
      - broker.env
    networks:
      - mynetwork

```

Here is a snippet of `broker.env`

```auto
# Common Cluster ID
CLUSTER_ID=someId

# Node Configuration
KAFKA_NODE_ID=1
KAFKA_PROCESS_ROLES=broker,controller

# Listeners and Advertised Listeners
KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:29092,CONTROLLER://0.0.0.0:29093,PLAINTEXT_HOST://0.0.0.0:9092
KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://broker:29092,PLAINTEXT_HOST://localhost:9092

```

The container does not launch. Here is the log.

```auto
Exception in thread "main" java.lang.IllegalArgumentException: requirement failed: advertised.listeners cannot use the nonroutable meta-address 0.0.0.0. Use a routable IP address. at scala.Predef$.require(Predef.scala:337) at kafka.server.KafkaConfig.validateValues(KafkaConfig.scala:1022) at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:852) at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:184) at kafka.tools.StorageTool$.$anonfun$execute$1(StorageTool.scala:79) at scala.Option.flatMap(Option.scala:283) at kafka.tools.StorageTool$.execute(StorageTool.scala:79) at kafka.tools.StorageTool$.main(StorageTool.scala:46) at kafka.tools.StorageTool.main(StorageTool.scala)

```

I do not know what the error means. `confluentinc/cp-kafka:latest` runs successfully with the `broker.env` on my Windows laptop.

ChatGPT said something like this:

> The `cp-kafka` image may trigger `kafka-storage.sh format` on first start (especially for KRaft mode), and **fails** if it reads invalid listeners like `0.0.0.0`.

Is this true? How do I launch the container on ARM64 successfully?

---

<div class="post-metadata">

**Author:** ![chainhead](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/chainhead/32/1255_2.png) [@chainhead](https://forum.confluent.io/u/chainhead)\
**Post date:** [3 May 2025 04:07 UTC](https://forum.confluent.io/t/unable-to-launch-kafka-container-on-arm64/37725/2 "2025-05-03T04:07:12Z")

</div>

Update:

1. Same issue with `latest.amd64`.
2. Works with `7.8.0` on AMD64; `7.9.0` failed on AMD64.

---

<div class="post-metadata">

**Author:** ![chainhead](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/chainhead/32/1255_2.png) [@chainhead](https://forum.confluent.io/u/chainhead)\
**Post date:** [6 May 2025 15:42 UTC](https://forum.confluent.io/t/unable-to-launch-kafka-container-on-arm64/37725/3 "2025-05-06T15:42:25Z")

</div>

`7.8.0` works on both architectures.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [13 May 2025 15:42 UTC](https://forum.confluent.io/t/unable-to-launch-kafka-container-on-arm64/37725/4 "2025-05-13T15:42:51Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
