Apache Kafka Docker Images Now Available for JVM and GraalVM Native
The Apache Kafka project has officially released Docker images, making it significantly easier for developers to deploy and experiment with Kafka. These new images are available for both the traditional JVM-based Apache Kafka, starting with version 3.7.0, and a GraalVM Native version, available from version 3.8.0.
Developers can now pull these images directly from Docker Hub using simple `docker pull` commands, such as `docker pull apache/kafka:4.3.0` for the JVM version or `docker pull apache/kafka-native:4.3.0` for the native build. This streamlines the process of getting a Kafka instance up and running, whether for development, testing, or even production environments for the JVM version.
The GraalVM Native Docker image is noted as experimental and is primarily intended for local development and testing purposes. Users are advised against deploying this native image in production environments at this stage. This distinction highlights the project's commitment to providing cutting-edge options while maintaining stability for critical deployments.
To quickly start a Kafka container with default configurations on port 9092, users can execute `docker run -p 9092:9092 apache/kafka:4.3.0` or `docker run -p 9092:9092 apache/kafka-native:4.3.0` for the respective images. This integration with Docker simplifies the initial setup, removing much of the manual configuration previously required.
This release underscores the growing importance of containerization in modern software development and operations, enabling more consistent and reproducible environments for Apache Kafka users.
Read original source