docker.io/apache/kafka:3.8.1 linux/amd64

docker.io/apache/kafka:3.8.1 - 国内下载镜像源 浏览次数:6 安全受验证的发布者-apache

Apache Kafka 镜像

这是一个 Apache Kafka 的 Docker 镜像,由 Apache 软件基金会官方发布。它提供了一个简单易用的方式来运行 Kafka 集群,用于构建实时数据管道和流式处理应用程序。

该镜像包含了所有必要的依赖项和配置,您可以轻松地启动 Kafka 集群并开始使用。它支持多种 Kafka 版本,并提供了丰富的功能,包括:

  • 消息发布和订阅
  • 主题和分区管理
  • 消费者组管理
  • 消息压缩和加密
  • 安全性和身份验证

使用这个镜像可以帮助您快速搭建 Kafka 环境,并专注于构建您的应用程序。

源镜像 docker.io/apache/kafka:3.8.1
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka:3.8.1
镜像ID sha256:1756e53f57e1c70531e632b1405b0a820dabdf449c9abeed911cb1c436b0c074
镜像TAG 3.8.1
大小 385.09MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /etc/kafka/docker/run
启动入口 /__cacert_entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 6 次
贡献者
镜像创建 2024-10-17T18:36:44.683877906Z
同步时间 2025-04-02 16:17
更新时间 2025-04-03 00:25
开放端口
9092/tcp
目录挂载
/etc/kafka/secrets /mnt/shared/config /var/lib/kafka/data
环境变量
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin JAVA_HOME=/opt/java/openjdk LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 JAVA_VERSION=jdk-21.0.4+7
镜像标签
Apache Kafka: maintainer 2024-10-17: org.label-schema.build-date Apache Kafka: org.label-schema.description kafka: org.label-schema.name https://github.com/apache/kafka: org.label-schema.vcs-url

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka:3.8.1
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka:3.8.1  docker.io/apache/kafka:3.8.1

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka:3.8.1
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka:3.8.1  docker.io/apache/kafka:3.8.1

Shell快速替换命令

sed -i 's#apache/kafka:3.8.1#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka:3.8.1#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka:3.8.1 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka:3.8.1  docker.io/apache/kafka:3.8.1'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka:3.8.1 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka:3.8.1  docker.io/apache/kafka:3.8.1'

镜像构建历史


# 2024-10-18 02:36:44  0.00B 设置默认要执行的命令
CMD ["/etc/kafka/docker/run"]
                        
# 2024-10-18 02:36:44  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/etc/kafka/secrets /var/lib/kafka/data /mnt/shared/config]
                        
# 2024-10-18 02:36:44  0.00B 指定运行容器时使用的用户
USER appuser
                        
# 2024-10-18 02:36:44  3.27KB 复制新文件或目录到容器中
COPY --chown=appuser:appuser launch /etc/kafka/docker/launch # buildkit
                        
# 2024-10-18 02:36:44  7.92KB 复制新文件或目录到容器中
COPY --chown=appuser:appuser resources/common-scripts /etc/kafka/docker # buildkit
                        
# 2024-10-18 02:36:44  16.04MB 复制新文件或目录到容器中
COPY storage.jsa /opt/kafka/storage.jsa # buildkit
                        
# 2024-10-18 02:36:44  45.49MB 复制新文件或目录到容器中
COPY kafka.jsa /opt/kafka/kafka.jsa # buildkit
                        
# 2024-10-18 02:36:20  132.18MB 执行命令并创建新的镜像层
RUN |2 kafka_url=https://dist.apache.org/repos/dist/dev/kafka/3.8.1-rc1/kafka_2.13-3.8.1.tgz build_date=2024-10-17 /bin/sh -c set -eux ;     apk update ;     apk upgrade ;     apk add --no-cache wget gcompat gpg gpg-agent procps bash;     mkdir opt/kafka;     wget -nv -O kafka.tgz "$kafka_url";     wget -nv -O kafka.tgz.asc "$kafka_url.asc";     tar xfz kafka.tgz -C /opt/kafka --strip-components 1;     wget -nv -O KEYS https://downloads.apache.org/kafka/KEYS;     gpg --import KEYS;     gpg --batch --verify kafka.tgz.asc kafka.tgz;     mkdir -p /var/lib/kafka/data /etc/kafka/secrets;     mkdir -p /etc/kafka/docker /usr/logs /mnt/shared/config;     adduser -h /home/appuser -D --shell /bin/bash appuser;     chown appuser:appuser -R /usr/logs /opt/kafka /mnt/shared/config;     chown appuser:root -R /var/lib/kafka /etc/kafka/secrets /etc/kafka;     chmod -R ug+w /etc/kafka /var/lib/kafka /etc/kafka/secrets;     cp /opt/kafka/config/log4j.properties /etc/kafka/docker/log4j.properties;     cp /opt/kafka/config/tools-log4j.properties /etc/kafka/docker/tools-log4j.properties;     cp /opt/kafka/config/kraft/server.properties /etc/kafka/docker/server.properties;     rm kafka.tgz kafka.tgz.asc KEYS;     apk del wget gpg gpg-agent;     apk cache clean; # buildkit
                        
# 2024-10-18 02:36:20  0.00B 添加元数据标签
LABEL org.label-schema.name=kafka org.label-schema.description=Apache Kafka org.label-schema.build-date=2024-10-17 org.label-schema.vcs-url=https://github.com/apache/kafka maintainer=Apache Kafka
                        
# 2024-10-18 02:36:20  0.00B 定义构建参数
ARG build_date=2024-10-17
                        
# 2024-10-18 02:36:20  0.00B 定义构建参数
ARG kafka_url=https://dist.apache.org/repos/dist/dev/kafka/3.8.1-rc1/kafka_2.13-3.8.1.tgz
                        
# 2024-10-18 02:36:20  0.00B 指定运行容器时使用的用户
USER root
                        
# 2024-10-18 02:36:20  0.00B 声明容器运行时监听的端口
EXPOSE map[9092/tcp:{}]
                        
# 2024-08-22 15:58:33  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/__cacert_entrypoint.sh"]
                        
# 2024-08-22 15:58:33  4.74KB 复制新文件或目录到容器中
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh # buildkit
                        
# 2024-08-22 15:58:33  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux;     echo "Verifying install ...";     echo "java --version"; java --version;     echo "Complete." # buildkit
                        
# 2024-08-22 15:58:33  164.70MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux;     ARCH="$(apk --print-arch)";     case "${ARCH}" in        aarch64)          ESUM='f9410264235861deaf30f97bec80870cf3bc38b1d8e57d897d8bb1f706ae6705';          BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jre_aarch64_alpine-linux_hotspot_21.0.4_7.tar.gz';          ;;        x86_64)          ESUM='0dfd0ebab44d777f65bceaff7f79e8e0b9deb74a5eb166922483f1864bcf2052';          BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jre_x64_alpine-linux_hotspot_21.0.4_7.tar.gz';          ;;        *)          echo "Unsupported arch: ${ARCH}";          exit 1;          ;;     esac;     wget -O /tmp/openjdk.tar.gz ${BINARY_URL};     echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -;     mkdir -p "$JAVA_HOME";     tar --extract         --file /tmp/openjdk.tar.gz         --directory "$JAVA_HOME"         --strip-components 1         --no-same-owner     ;     rm -f /tmp/openjdk.tar.gz ${JAVA_HOME}/lib/src.zip; # buildkit
                        
# 2024-08-22 15:58:33  0.00B 设置环境变量 JAVA_VERSION
ENV JAVA_VERSION=jdk-21.0.4+7
                        
# 2024-08-22 15:58:33  18.88MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux;     apk add --no-cache         fontconfig ttf-dejavu         ca-certificates p11-kit-trust         musl-locales musl-locales-lang         tzdata         coreutils         openssl     ;     rm -rf /var/cache/apk/* # buildkit
                        
# 2024-08-22 15:58:33  0.00B 设置环境变量 LANG LANGUAGE LC_ALL
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
                        
# 2024-08-22 15:58:33  0.00B 设置环境变量 PATH
ENV PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-08-22 15:58:33  0.00B 设置环境变量 JAVA_HOME
ENV JAVA_HOME=/opt/java/openjdk
                        
# 2024-09-07 06:20:07  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2024-09-07 06:20:07  7.80MB 
/bin/sh -c #(nop) ADD file:5758b97d8301c84a204a6e516241275d785a7cade40b2fb99f01fe122482e283 in / 
                        
                    

镜像信息

{
    "Id": "sha256:1756e53f57e1c70531e632b1405b0a820dabdf449c9abeed911cb1c436b0c074",
    "RepoTags": [
        "apache/kafka:3.8.1",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka:3.8.1"
    ],
    "RepoDigests": [
        "apache/kafka@sha256:22c4bea38875408e8f9fe52aca8e3a6ee67f9aa0090db59af99a2f6647558db5",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka@sha256:324ce5fa4c1d73f067d97a0a6d4197d37c39ea6086025a286f9fca8865fb4f00"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-17T18:36:44.683877906Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "appuser",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "9092/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "JAVA_HOME=/opt/java/openjdk",
            "LANG=en_US.UTF-8",
            "LANGUAGE=en_US:en",
            "LC_ALL=en_US.UTF-8",
            "JAVA_VERSION=jdk-21.0.4+7"
        ],
        "Cmd": [
            "/etc/kafka/docker/run"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/etc/kafka/secrets": {},
            "/mnt/shared/config": {},
            "/var/lib/kafka/data": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "/__cacert_entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "maintainer": "Apache Kafka",
            "org.label-schema.build-date": "2024-10-17",
            "org.label-schema.description": "Apache Kafka",
            "org.label-schema.name": "kafka",
            "org.label-schema.vcs-url": "https://github.com/apache/kafka"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 385087733,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/88c04749b72627979b5f389dd7b0c8b62ac0ad753c58a85e4cd4a8edf17adddd/diff:/var/lib/docker/overlay2/e3801453b987f9a1ea6e1b37b187e3fdc5278de87813d264f539d15c78760172/diff:/var/lib/docker/overlay2/cc63feff0fccbe5d7e3540c4c9d381addde66ef18a8fe473803ef4cf9948496c/diff:/var/lib/docker/overlay2/273560cd96c3acfeeabf283a99d8fdb98f655299641921ae2a179ca2dcba4cae/diff:/var/lib/docker/overlay2/e914d969ccdc624ff352e78ba60d4a448a057c0691902eb5212f8d1dd2cf6b8a/diff:/var/lib/docker/overlay2/5035a40772d8f3cdc4b05ef5580a0a6203a336465cd92c1260c5e8f4f59290c6/diff:/var/lib/docker/overlay2/09a457da32f8c6b23c87062631abf3fc6f1284f08b73a16d69b7eaef22f5e4ad/diff:/var/lib/docker/overlay2/97cde4ee2a1d83b083da71360bf258a697e6f605d1533a205b55b7786a7ae7ce/diff:/var/lib/docker/overlay2/56dbc2212cbc9b991b1a93a72a8c08a3a8460c06576fe4f3267009446334aa65/diff",
            "MergedDir": "/var/lib/docker/overlay2/d27e37dd057fd01469425d36a5d3b9b8bb9198c7328f31fa8df93630fc8cac57/merged",
            "UpperDir": "/var/lib/docker/overlay2/d27e37dd057fd01469425d36a5d3b9b8bb9198c7328f31fa8df93630fc8cac57/diff",
            "WorkDir": "/var/lib/docker/overlay2/d27e37dd057fd01469425d36a5d3b9b8bb9198c7328f31fa8df93630fc8cac57/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:63ca1fbb43ae5034640e5e6cb3e083e05c290072c5366fcaa9d62435a4cced85",
            "sha256:01d3f5d5a6c9da3fd6eac9064dae0c1bb3e20d25d5df871344931ca2db309c6c",
            "sha256:13407d63b6505a686df5cba2224433b4123971902b00df55ae31b27961869b2f",
            "sha256:44a76360121e6507021403c138354deb331a6f87caa6be323239cdde81537619",
            "sha256:71e8cc6fa9c8eca4fa7e6cc1297c8233b6c6e26ff0af4a516dc0ae568eaa6294",
            "sha256:ff6ec7cef35ca65ea969dccb0fd512da8949e5710e9c22f97cb1739c818eb3d6",
            "sha256:9752b185bd8453bb80bba3553acffde7fe939fec0161f2c347b7cca753a3a6f0",
            "sha256:96423669a777d638222652f15391e0f396a8e3fd84a3a1be1097161ed58fbd2d",
            "sha256:bbf660deae2aa817b2ec57bb6ef28114627af475615137a03aa3d7d43f5580a2",
            "sha256:bded92263d0d061adcdb3de19b047ddc46eae8a4d15a157fc54148d486ae171a"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-04-02T16:17:21.033028722+08:00"
    }
}

更多版本

docker.io/apache/kafka:3.8.0

linux/amd64 docker.io382.14MB2024-09-24 15:18
533

docker.io/apache/kafka:3.9.0

linux/amd64 docker.io404.41MB2024-11-09 21:27
315

docker.io/apache/kafka:4.0.0

linux/amd64 docker.io424.94MB2025-03-27 14:51
125

docker.io/apache/kafka:3.8.1

linux/amd64 docker.io385.09MB2025-04-02 16:17
5

docker.io/apache/kafka-native:3.8.1

linux/amd64 docker.io134.33MB2025-04-02 16:19
8

docker.io/apache/kafka-native:3.9.0

linux/amd64 docker.io137.14MB2025-04-02 16:21
8

docker.io/apache/kafka-native:4.0.0

linux/amd64 docker.io136.15MB2025-04-02 16:23
13