Overview
- Full name
docker.io/apache/kafka-native- Registry
- docker.io
- Namespace
- apache
- Repository
- kafka-native
- Cached tags
- 64
- Last synced
- 07/05/2026, 03:57 PM
- Topics
Introduction
Apache Kafka KRaft 原生模式镜像,无 ZooKeeper 依赖的单二进制 Kafka,简化部署的消息队列与流处理平台运行时。
Details
apache/kafka-native 提供 Apache Kafka 3.x KRaft 模式构建,移除 ZooKeeper 依赖以简化拓扑。定位为分布式消息队列 Broker,需持久化 log volume;事件驱动架构、日志管道与流处理数据源,KRaft 模式降低运维复杂度。
快速启动
docker run -d --name kafka \
-p 9092:9092 \
-e KAFKA_NODE_ID=1 \
-e KAFKA_PROCESS_ROLES=broker,controller \
docker.io/apache/kafka-native:latest
推荐实践
docker run -d --name kafka \
--restart unless-stopped \
-p 9092:9092 \
-v /data/kafka:/var/lib/kafka/data \
-e KAFKA_NODE_ID=1 \
-e KAFKA_PROCESS_ROLES=broker,controller \
docker.io/apache/kafka-native:3.8.0
核心参数说明
-p 9092:9092— Kafka 客户端端口KAFKA_PROCESS_ROLES— KRaft 角色-v .../kafka:...— 日志持久化- 集群 — 多节点 controller+broker
Kubernetes
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: kafka
spec:
serviceName: kafka
replicas: 3
selector:
matchLabels:
app: kafka
template:
metadata:
labels:
app: kafka
spec:
containers:
- name: kafka
image: docker.io/apache/kafka-native:3.8.0
ports:
- containerPort: 9092
env:
- name: KAFKA_NODE_ID
valueFrom:
fieldRef:
fieldPath: metadata.name
volumeMounts:
- name: data
mountPath: /var/lib/kafka/data
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: [ReadWriteOnce]
resources:
requests:
storage: 50Gi
Headless Service 供 broker 发现;KRaft 三节点起步。
Latest tags (20)
View all 64 tags →| Tag | Arch | Pushed At | Size | Digest | Sync | Wish | Action |
|---|---|---|---|---|---|---|---|
docker.io/apache/kafka-native :latest | linux/amd64linux/arm64 | 2026/06/24 07:48 | 52.5 MB | sha256:e50f6ad232dc… | |||
docker.io/apache/kafka-native :4.3.1 | linux/amd64linux/arm64 | 2026/06/24 07:22 | 52.5 MB | sha256:e50f6ad232dc… | |||
docker.io/apache/kafka-native :4.3.1-rc2 | linux/amd64linux/arm64 | 2026/06/18 05:27 | 52.5 MB | sha256:e50f6ad232dc… | |||
docker.io/apache/kafka-native :4.3.1-rc1 | linux/amd64linux/arm64 | 2026/06/16 09:43 | 54.9 MB | sha256:ea794b271043… | |||
docker.io/apache/kafka-native :4.3.1-rc0 | linux/amd64linux/arm64 | 2026/06/16 06:03 | 54.9 MB | sha256:03ffe007e79f… | |||
docker.io/apache/kafka-native :4.3.1-rc | linux/amd64linux/arm64 | 2026/06/12 07:51 | 54.9 MB | sha256:3f04b7bbcccd… | |||
docker.io/apache/kafka-native :4.2.1 | linux/amd64linux/arm64 | 2026/05/28 22:51 | 52.4 MB | sha256:792c40a28a4b… | |||
docker.io/apache/kafka-native :4.3.0 | linux/amd64linux/arm64 | 2026/05/21 00:08 | 52.4 MB | sha256:6cc3e79aefb1… | |||
docker.io/apache/kafka-native :4.2.1-rc5 | linux/amd64linux/arm64 | 2026/05/13 23:07 | 52.4 MB | sha256:792c40a28a4b… | |||
docker.io/apache/kafka-native :4.3.0-rc2 | linux/amd64linux/arm64 | 2026/05/13 19:31 | 52.4 MB | sha256:6cc3e79aefb1… | |||
docker.io/apache/kafka-native :4.2.1-rc4 | linux/amd64linux/arm64 | 2026/05/12 20:06 | 52.4 MB | sha256:4e63176fa560… | |||
docker.io/apache/kafka-native :4.3.0-rc1 | linux/amd64linux/arm64 | 2026/05/05 18:50 | 52.4 MB | sha256:9e1b6095b442… | |||
docker.io/apache/kafka-native :4.3.0-rc0 | linux/amd64linux/arm64 | 2026/04/28 20:27 | 52.4 MB | sha256:f9a904ef7afb… | |||
docker.io/apache/kafka-native :4.2.1-rc3 | linux/amd64linux/arm64 | 2026/04/26 01:30 | 52.4 MB | sha256:2e884b8fcddd… | |||
docker.io/apache/kafka-native :4.2.1-rc1 | linux/amd64linux/arm64 | 2026/04/19 10:07 | 52.4 MB | sha256:01d1fa799e78… | |||
docker.io/apache/kafka-native :4.0.2 | linux/amd64linux/arm64 | 2026/03/20 16:46 | 50.0 MB | sha256:6e5d8c42a06c… | |||
docker.io/apache/kafka-native :4.1.2 | linux/amd64linux/arm64 | 2026/03/17 19:56 | 52.0 MB | sha256:34f0f444fd95… | |||
docker.io/apache/kafka-native :4.0.2-rc3 | linux/amd64linux/arm64 | 2026/03/05 00:10 | 50.0 MB | sha256:6e5d8c42a06c… | |||
docker.io/apache/kafka-native :4.1.2-rc1 | linux/amd64linux/arm64 | 2026/02/25 20:19 | 52.0 MB | sha256:34f0f444fd95… | |||
docker.io/apache/kafka-native :3.9.2 | linux/amd64linux/arm64 | 2026/02/21 11:17 | 48.7 MB | sha256:56a46c0fb924… |