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

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

这是一个基于 Apache Kafka 的 Docker 镜像,使用 Native 模式构建。它提供了一个预先配置好的 Kafka 集群,可以直接使用,方便用户快速部署和运行 Kafka 应用。

```
源镜像 docker.io/apache/kafka-native:3.8.1
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka-native:3.8.1
镜像ID sha256:d33b9c71370627f37c7d9bd1132228452f1de9f96aa6774234bfa9cb19ba8196
镜像TAG 3.8.1
大小 134.33MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /etc/kafka/docker/run
启动入口
工作目录
OS/平台 linux/amd64
浏览量 9 次
贡献者
镜像创建 2024-10-17T19:22:39.660234709Z
同步时间 2025-04-02 16:19
更新时间 2025-04-03 16:23
开放端口
9092/tcp
目录挂载
/etc/kafka/secrets /mnt/shared/config
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
镜像标签
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-native:3.8.1
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka-native:3.8.1  docker.io/apache/kafka-native:3.8.1

Containerd拉取命令

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

Shell快速替换命令

sed -i 's#apache/kafka-native:3.8.1#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka-native: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-native:3.8.1 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka-native:3.8.1  docker.io/apache/kafka-native: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-native:3.8.1 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka-native:3.8.1  docker.io/apache/kafka-native:3.8.1'

镜像构建历史


# 2024-10-18 03:22:39  0.00B 设置默认要执行的命令
CMD ["/etc/kafka/docker/run"]
                        
# 2024-10-18 03:22:39  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/etc/kafka/secrets /mnt/shared/config]
                        
# 2024-10-18 03:22:39  0.00B 指定运行容器时使用的用户
USER appuser
                        
# 2024-10-18 03:22:39  2.59KB 复制新文件或目录到容器中
COPY --chown=appuser:root launch /etc/kafka/docker/ # buildkit
                        
# 2024-10-18 03:22:39  7.92KB 复制新文件或目录到容器中
COPY --chown=appuser:root resources/common-scripts /etc/kafka/docker/ # buildkit
                        
# 2024-10-18 03:22:39  1.09KB 复制新文件或目录到容器中
COPY --chown=appuser:root /app/kafka/config/tools-log4j.properties /etc/kafka/docker/ # buildkit
                        
# 2024-10-18 03:22:39  4.92KB 复制新文件或目录到容器中
COPY --chown=appuser:root /app/kafka/config/log4j.properties /etc/kafka/docker/ # buildkit
                        
# 2024-10-18 03:22:39  6.30KB 复制新文件或目录到容器中
COPY --chown=appuser:root /app/kafka/config/kraft/server.properties /etc/kafka/docker/ # buildkit
                        
# 2024-10-18 03:22:39  122.02MB 复制新文件或目录到容器中
COPY --chown=appuser:root /app/kafka/kafka.Kafka /opt/kafka/ # buildkit
                        
# 2024-10-18 03:16:44  4.49MB 执行命令并创建新的镜像层
RUN |1 build_date=2024-10-17 /bin/sh -c apk update ;     apk add --no-cache gcompat ;     apk add --no-cache bash ;     mkdir -p /etc/kafka/docker /mnt/shared/config /opt/kafka/config /etc/kafka/secrets ;     adduser -h /home/appuser -D --shell /bin/bash appuser ;     chown appuser:root -R /etc/kafka /opt/kafka /mnt/shared/config ;     chmod -R ug+w /etc/kafka /opt/kafka /mnt/shared/config ; # buildkit
                        
# 2024-10-18 03:16:44  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 03:16:44  0.00B 定义构建参数
ARG build_date=2024-10-17
                        
# 2024-10-18 03:16:44  0.00B 声明容器运行时监听的端口
EXPOSE map[9092/tcp:{}]
                        
# 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:d33b9c71370627f37c7d9bd1132228452f1de9f96aa6774234bfa9cb19ba8196",
    "RepoTags": [
        "apache/kafka-native:3.8.1",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka-native:3.8.1"
    ],
    "RepoDigests": [
        "apache/kafka-native@sha256:92bb953e145aec16f16f55a033a02bbc94f43f91749f5d7bbc9a87ed9df71c72",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/kafka-native@sha256:2405876ff935ce014e5aa4b3fbe312b394f789392ec6ab14f4d8434387f7b3f5"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-17T19:22:39.660234709Z",
    "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=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        ],
        "Cmd": [
            "/etc/kafka/docker/run"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/etc/kafka/secrets": {},
            "/mnt/shared/config": {}
        },
        "WorkingDir": "",
        "Entrypoint": null,
        "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": 134330142,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/8c4c3235785177487161a753ae583af58f16573eb56b034ee87fb9a2ba6fbfc6/diff:/var/lib/docker/overlay2/1d9c293d5e483e6959aa4aa8daae521d2fdf93fc641a3d5061f90e1d7c0972ef/diff:/var/lib/docker/overlay2/b54c0d0a8ec07284b482354eab29bfb0956d7b6432ab91f97c003974ef990e30/diff:/var/lib/docker/overlay2/139be939b561246d0b7b0247f01636d97b5ad7c49b9cf173369b7e77457bbbb7/diff:/var/lib/docker/overlay2/61305df20b8ab47e23d3e84e1ae24d369b6b07548acfefc31b8c906576e5bf38/diff:/var/lib/docker/overlay2/ef3511d79924431352e661fbd5850d1b4eaff03b51c67d90c5e56857a6eaec55/diff:/var/lib/docker/overlay2/56dbc2212cbc9b991b1a93a72a8c08a3a8460c06576fe4f3267009446334aa65/diff",
            "MergedDir": "/var/lib/docker/overlay2/fa5fea66a6ff7da349c4dabfeaa7d75b3b2854108b42c4db94a21d3110f4e068/merged",
            "UpperDir": "/var/lib/docker/overlay2/fa5fea66a6ff7da349c4dabfeaa7d75b3b2854108b42c4db94a21d3110f4e068/diff",
            "WorkDir": "/var/lib/docker/overlay2/fa5fea66a6ff7da349c4dabfeaa7d75b3b2854108b42c4db94a21d3110f4e068/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:63ca1fbb43ae5034640e5e6cb3e083e05c290072c5366fcaa9d62435a4cced85",
            "sha256:87fb07a4334958282abc1d3d548213f9331d6d11ec01d31f640a3863a3d1072f",
            "sha256:b623da035bfe285e64f01dd0fc18ab14538eff395992b798fcd88640b5b490ef",
            "sha256:a5adc33318391500336d992ee38342d7c7405db638c8ca6bc5dbe2ce11edf6da",
            "sha256:e9960f57080dafd152c723d05c4078be045a1561a4756e2068cb0270ace38058",
            "sha256:937127d733a8dd9a196daa521499237baed47693104218df38d76f0f015d8b7a",
            "sha256:3ba2bbf72b89f25cd1d43f1b1e7daa6d0651c28888deb11da3f0173ebc942293",
            "sha256:0d55d585ed49119f9b8e26bfcd080a24401d40e3966265cb0777ecce8f61f6c9"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-04-02T16:19:42.40108625+08:00"
    }
}

更多版本

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