Skip to content

[Bug]: Kafka Kraft mode is not working with Confluent Platform 7.4.0 or above images #7031

@danielpetisme

Description

@danielpetisme

Module

Kafka

Testcontainers version

1.18.0

Using the latest Testcontainers version?

Yes

Host OS

Mac

Host Arch

x86

Docker version

All versions of Docker

What happened?

When using Kafka module with Kraft mode, the container fails to start when using confluentinc/cp-kafka or confluentinc/cp-server images with version 7.4.0 or higher.

Relevant log output

No response

Additional Information

This behavior is due to an change on how the Confluent images are built.

  • An explicitCLUSTER_ID env var is now required
  • Storage formatting is now part of the image making the usage of commandKraft useless

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions