Where can I download the official Docker image for bitnami/kafka? I’ve searched on Google, used AI assistants, and watched YouTube videos, but I couldn’t find this image on Docker Hub. When I tried to install it using Docker Compose with the following configuration:
kafka:
image: bitnami/kafka:latest
expose:
- "9092"
environment:
KAFKA_CFG_NODE_ID: 1
KAFKA_CFG_PROCESS_ROLES: controller,broker
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 1@kafka:9093
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_CFG_INTER_BROKER_LISTENER_NAME: PLAINTEXT
networks:
- users-service
I get the error: ‘docker.io/bitnami/kafka:latest: not found’. I’ve tried with specific versions as well, but the result is the same. Where can I find the current bitnami/kafka Docker image?
The official bitnami/kafka image is no longer available in the main Docker Hub repository. The images have been moved to the bitnamilegacy/kafka repository due to Bitnami’s policy of discontinuing support for free images. To resolve your issue, use the bitnamilegacy/kafka:latest image instead of bitnami/kafka:latest in your Docker Compose configuration.
Table of Contents
- Problem with official bitnami/kafka image
- Where to download current bitnami/kafka image
- Migration to bitnamilegacy/kafka
- Alternatives and solutions
- Docker Compose update instructions
Problem with official bitnami/kafka image
Bitnami is actively discontinuing support for their free Docker images, including Kafka. As stated in the official documentation, starting August 28, 2025, all existing images, including Kafka, have been moved from the main repository docker.io/bitnami to the legacy repository docker.io/bitnamilegacy. This means attempting to pull the bitnami/kafka:latest image will result in a ‘not found’ error, as it no longer exists in the main repository.
Important: This is not a technical issue on your end, but rather a consequence of Broadcom’s corporate policy (the new owner of Bitnami), which is transitioning most images to a paid model with limited access to free versions.
Where to download current bitnami/kafka image
The current bitnami/kafka image is now only available in the legacy repository:
Main source:
- Docker Hub:
bitnamilegacy/kafka - Link: https://hub.docker.com/r/bitnamilegacy/kafka
Additional sources:
- Amazon ECR Public:
gallery.ecr.aws/bitnami/kafka - GitHub Container Registry: Available through official Bitnami repositories
Note that images in the bitnamilegacy repository will not receive security updates and feature enhancements, but can be used for existing deployments until they are completely discontinued.
Migration to bitnamilegacy/kafka
To resolve your Docker Compose configuration issue, you need to make the following changes:
Updated Docker Compose configuration:
kafka:
image: bitnamilegacy/kafka:latest # <-- CHANGE HERE
expose:
- "9092"
environment:
KAFKA_CFG_NODE_ID: 1
KAFKA_CFG_PROCESS_ROLES: controller,broker
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 1@kafka:9093
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_CFG_INTER_BROKER_LISTENER_NAME: PLAINTEXT
networks:
- users-service
Step-by-step migration:
-
Stop current Kafka containers:
bashdocker-compose down
-
Update image in docker-compose.yml:
yamlimage: bitnamilegacy/kafka:latest -
Clear Docker cache (if the issue persists):
bashdocker system prune -a
-
Start the updated configuration:
bashdocker-compose up -d
Alternatives and solutions
As Bitnami transitions to a paid model, it’s worth considering alternative solutions for long-term use:
1. Official Apache Kafka
- Source: https://hub.docker.com/_/apache-kafka
- Advantages: Free, actively maintained, official
- Disadvantages: Requires more manual configuration
2. Confluent Platform
- Source: https://hub.docker.com/r/confluentinc/cp-kafka
- Advantages: Enterprise support, additional features
- Disadvantages: May require a license for production
3. Third-party managed solutions:
- Northflank provides managed solutions for Kafka and other message queues
- Other cloud providers (AWS MSK, GCP Cloud Pub/Sub, Azure Event Hubs)
Alternative comparison:
| Solution | Price | Support | Configuration |
|---|---|---|---|
| bitnamilegacy/kafka | Free | Limited | Easier |
| Apache Kafka | Free | Active | Requires effort |
| Confluent Platform | Paid | Enterprise | Medium |
| Cloud options | Pay-as-you-go | Full | Minimal |
Docker Compose update instructions
If you want to use official solutions instead of Bitnami, here’s an example configuration for Confluent Kafka:
Confluent Kafka configuration:
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka:
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_AUTO_CREATE_TOPICS_ENABLE: true
kafka-ui:
image: provectuslabs/kafka-ui:latest
depends_on:
- kafka
ports:
- "8080:8080"
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:9092
Commands for quick migration:
-
Create a backup of your current configuration:
bashcp docker-compose.yml docker-compose.backup.yml -
Replace the image with
bitnamilegacy/kafkaor choose an alternative -
Validate the configuration:
bashdocker-compose config
-
Restart the services:
bashdocker-compose up -d --force-recreate
-
Verify functionality:
bashdocker-compose logs kafka
Sources
- Bitnami containers/kafka README - GitHub
- Bitnami Legacy Kafka Docker Image
- Northflank Blog - Bitnami Deprecates Free Images
- Bitnami Secure Images Documentation
- Reddit Discussion - Bitnami Image Deprecation
- GitHub Issue - Upcoming changes to Bitnami catalog
- Apache Kafka Official Docker Image
- Confluent Kafka Docker Image
Conclusion
-
Main issue: The
bitnami/kafkaimage has been moved to thebitnamilegacy/kafkarepository due to Bitnami’s policy of discontinuing support for free images. -
Solution: Replace
bitnami/kafka:latestwithbitnamilegacy/kafka:latestin your Docker Compose configuration. -
Temporary nature: Remember that images in
bitnamilegacydo not receive updates, so it’s advisable to plan a migration to official or managed solutions. -
Recommendation: For long-term use, consider transitioning to official Apache Kafka or Confluent Platform images, which will be actively maintained.
-
Timeline: You have time until Bitnami completely discontinues support for legacy images, but it’s recommended to start the migration as soon as possible to avoid production environment disruptions.