logo
docker.io/hashicorp/consul-k8s-control-plane:2.0.2
linux/amd64 docker.io

这是一个 HashiCorp Consul 的 Kubernetes 控制平面镜像。它包含运行 Consul 控制平面所需的所有组件,用于在 Kubernetes 集群中进行服务发现、配置和安全管理。

15
浏览次数
250.21MB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul-k8s-control-plane:2.0.2
源镜像
docker.io/hashicorp/consul-k8s-control-plane:2.0.2
镜像ID
sha256:eead170dbcb9b8c851295e813d8ec87aec033ac99353e6c4c50dea90f9f2bd5d
镜像 TAG
2.0.2
镜像大小
250.21MB
平台架构
linux/amd64
镜像源
docker.io
CMD
/bin/sh -c /bin/${BIN_NAME}
启动入口
工作目录
/
OS/平台
linux/amd64
镜像创建
2026-07-14T13:21:24.711237726Z
同步时间
2026-08-01 11:14
浏览量
15 次
贡献者
⚙️ 环境变量 4
KeyValue
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 0
PRODUCT_NAME=consul-k8s-control-plane 1
BIN_NAME=consul-k8s-control-plane 2
VERSION=2.0.2 3
🏷️ 镜像标签 8
KeyValue
consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes. description
Team Consul Kubernetes <team-consul-kubernetes@hashicorp.com> maintainer
consul-k8s-control-plane name
MPL-2.0 org.opencontainers.image.licenses
2.0.2 release
consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes. summary
HashiCorp vendor
2.0.2 version
🛡️ 镜像安全扫描
alpine 3.24.1 Trivy 2026-08-01 11:14 查看完整报告
0
低危 LOW
3
中危 MEDIUM
8
高危 HIGH
0
严重 CRITICAL
受影响目标 (4)
docker.io/hashicorp/consul-k8s-control-plane:2.0.2 (alpine 3.24.1) alpine bin/consul-cni gobinary bin/consul-k8s-control-plane gobinary bin/discover gobinary

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul-k8s-control-plane:2.0.2
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul-k8s-control-plane:2.0.2  docker.io/hashicorp/consul-k8s-control-plane:2.0.2

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul-k8s-control-plane:2.0.2
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul-k8s-control-plane:2.0.2  docker.io/hashicorp/consul-k8s-control-plane:2.0.2

Shell快速替换命令

sed -i 's#hashicorp/consul-k8s-control-plane:2.0.2#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul-k8s-control-plane:2.0.2#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul-k8s-control-plane:2.0.2 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul-k8s-control-plane:2.0.2  docker.io/hashicorp/consul-k8s-control-plane:2.0.2'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul-k8s-control-plane:2.0.2 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul-k8s-control-plane:2.0.2  docker.io/hashicorp/consul-k8s-control-plane:2.0.2'

镜像构建历史


# 2026-07-14 21:21:24  0.00B 设置默认要执行的命令
CMD ["/bin/sh" "-c" "/bin/${BIN_NAME}"]
                        
# 2026-07-14 21:21:24  0.00B 指定运行容器时使用的用户
USER 100
                        
# 2026-07-14 21:21:24  62.43MB 复制新文件或目录到容器中
COPY dist/cni/linux/amd64/consul-cni /bin/ # buildkit
                        
# 2026-07-14 21:21:24  125.33MB 复制新文件或目录到容器中
COPY dist/linux/amd64/consul-k8s-control-plane /bin/ # buildkit
                        
# 2026-07-14 21:21:23  47.07MB 复制新文件或目录到容器中
COPY /go/bin/discover /bin/ # buildkit
                        
# 2026-07-14 21:20:12  3.08KB 执行命令并创建新的镜像层
RUN |5 BIN_NAME=consul-k8s-control-plane CNI_BIN_NAME=consul-cni PRODUCT_VERSION=2.0.2 TARGETOS=linux TARGETARCH=amd64 /bin/sh -c addgroup ${BIN_NAME} &&     adduser -S -G ${BIN_NAME} 100 # buildkit
                        
# 2026-07-14 21:20:12  0.00B 定义构建参数
ARG TARGETARCH=amd64
                        
# 2026-07-14 21:20:12  0.00B 定义构建参数
ARG TARGETOS=linux
                        
# 2026-07-14 21:20:12  14.00B 执行命令并创建新的镜像层
RUN |3 BIN_NAME=consul-k8s-control-plane CNI_BIN_NAME=consul-cni PRODUCT_VERSION=2.0.2 /bin/sh -c ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2 # buildkit
                        
# 2026-07-14 21:20:12  6.94MB 执行命令并创建新的镜像层
RUN |3 BIN_NAME=consul-k8s-control-plane CNI_BIN_NAME=consul-cni PRODUCT_VERSION=2.0.2 /bin/sh -c apk add --no-cache --upgrade ca-certificates libcap openssl su-exec iputils gcompat libc6-compat libstdc++ iptables # buildkit
                        
# 2026-07-14 21:20:10  0.00B 设置环境变量 VERSION
ENV VERSION=2.0.2
                        
# 2026-07-14 21:20:10  0.00B 设置环境变量 BIN_NAME
ENV BIN_NAME=consul-k8s-control-plane
                        
# 2026-07-14 21:20:10  16.01KB 复制新文件或目录到容器中
COPY LICENSE /usr/share/doc/consul-k8s-control-plane/LICENSE.txt # buildkit
                        
# 2026-07-14 21:20:10  0.00B 添加元数据标签
LABEL name=consul-k8s-control-plane maintainer=Team Consul Kubernetes <team-consul-kubernetes@hashicorp.com> vendor=HashiCorp version=2.0.2 release=2.0.2 summary=consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes. description=consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes. org.opencontainers.image.licenses=MPL-2.0
                        
# 2026-07-14 21:20:10  0.00B 设置环境变量 PRODUCT_NAME
ENV PRODUCT_NAME=consul-k8s-control-plane
                        
# 2026-07-14 21:20:10  0.00B 定义构建参数
ARG PRODUCT_VERSION=2.0.2
                        
# 2026-07-14 21:20:10  0.00B 定义构建参数
ARG CNI_BIN_NAME=consul-cni
                        
# 2026-07-14 21:20:10  0.00B 定义构建参数
ARG BIN_NAME=consul-k8s-control-plane
                        
# 2026-06-16 08:01:29  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2026-06-16 08:01:29  8.42MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.24.1-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:eead170dbcb9b8c851295e813d8ec87aec033ac99353e6c4c50dea90f9f2bd5d",
    "RepoTags": [
        "hashicorp/consul-k8s-control-plane:2.0.2",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul-k8s-control-plane:2.0.2"
    ],
    "RepoDigests": [
        "hashicorp/consul-k8s-control-plane@sha256:2d42ecfde4f6cc8ef365f11a610e2f494101484583b5925c11e8898e92ccd069",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul-k8s-control-plane@sha256:174afa0b1663c0f82056eef6efba6d298ce541d5b023d46d3bbb2fd2b5906098"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-07-14T13:21:24.711237726Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "100",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "PRODUCT_NAME=consul-k8s-control-plane",
            "BIN_NAME=consul-k8s-control-plane",
            "VERSION=2.0.2"
        ],
        "Cmd": [
            "/bin/sh",
            "-c",
            "/bin/${BIN_NAME}"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": {
            "description": "consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes.",
            "maintainer": "Team Consul Kubernetes \u003cteam-consul-kubernetes@hashicorp.com\u003e",
            "name": "consul-k8s-control-plane",
            "org.opencontainers.image.licenses": "MPL-2.0",
            "release": "2.0.2",
            "summary": "consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes.",
            "vendor": "HashiCorp",
            "version": "2.0.2"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 250206820,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/35064f45b73c7f5795cd85704387a40661139466e4c9dfaa5c2bcded9235a890/diff:/var/lib/docker/overlay2/fe6be95a4e57b5dd980d1a41351d879ab93368de475b2ce97e42ef1b790d2f3a/diff:/var/lib/docker/overlay2/8d41f737587732fb6d9d3f06e81d5026960868918a718c4f5b98fe0248832827/diff:/var/lib/docker/overlay2/43a6b60b0d732d17b06ac3f3659953fa44e1cbe1ca003cd7d77b3154b68285d2/diff:/var/lib/docker/overlay2/6d50417cc7a18c1624691543e81b6d32afe94e58d13a9d0ed97efbce9cf955c8/diff:/var/lib/docker/overlay2/df1e76839ab8f9051c03ccdc83d204ca55b131f1fefada41666e2ab8b18acb4a/diff:/var/lib/docker/overlay2/d51bd9f442769618005c9be653661c047116bf4ebe32b04db2ad4ca7bebb792d/diff",
            "MergedDir": "/var/lib/docker/overlay2/7c542270de7a85b46522af35338667b722dd3ec1b1b8767827ef8796f324b916/merged",
            "UpperDir": "/var/lib/docker/overlay2/7c542270de7a85b46522af35338667b722dd3ec1b1b8767827ef8796f324b916/diff",
            "WorkDir": "/var/lib/docker/overlay2/7c542270de7a85b46522af35338667b722dd3ec1b1b8767827ef8796f324b916/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:34884abbe92863fce933ed7c39c0e045631af0ed86d5cc0dfbdf9fdca426ce3c",
            "sha256:a8dbdfddcb43169056a76d1779b1b0ced384d04a70aefa9234b1831dc2dd8dd9",
            "sha256:5a55e098ac0b8ed177fe2529408d25c72c7e5b770bafd65595290da5193cf3d4",
            "sha256:7aa9a0be1f0da11e15e188a49a33e8dc9d2c5c16ed45f8bfe12dd911bf6e809d",
            "sha256:ef1db5aa5d4d05e0fa96081467d457bb1946650871ed147d71545f4097263e9e",
            "sha256:980d1df6726a83ad80b4484edba6cf58a89bf2a2cefc684e759e12b803320982",
            "sha256:8f4cf91d741a1d4ea305bf0395dd683b2870bcfb8f7b8da24832734ec9511598",
            "sha256:10c6a57b6da9f890a64e7e71d5dd7f64bd85e50fa675d12b59d6ae0f7c677d09"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-08-01T11:13:59.4703997+08:00"
    }
}

更多版本

docker.io/hashicorp/consul-k8s-control-plane:1.6.1

linux/amd64 docker.io214.40MB2025-02-11 10:09
623

docker.io/hashicorp/consul-k8s-control-plane:1.7.0

linux/amd64 docker.io207.09MB2025-05-08 17:25
366

docker.io/hashicorp/consul-k8s-control-plane:1.8.1

linux/amd64 docker.io216.92MB2025-09-22 17:47
288

docker.io/hashicorp/consul-k8s-control-plane:1.9.0

linux/amd64 docker.io209.20MB2025-10-30 11:44
299

docker.io/hashicorp/consul-k8s-control-plane:1.9.3

linux/amd64 docker.io209.43MB2026-02-07 14:50
266

docker.io/hashicorp/consul-k8s-control-plane:2.0.2

linux/amd64 docker.io250.21MB2026-08-01 11:14
14
检测到您正在使用广告拦截插件,本站为公益站点,依赖广告维持运转 🙏 查看如何关闭 ×