docker.io/hashicorp/consul:1.21.5 linux/amd64

docker.io/hashicorp/consul:1.21.5 - 国内下载镜像源 浏览次数:35

HashiCorp Consul 镜像

这是一个由 HashiCorp 官方提供的 Consul 容器镜像,它包含了 Consul 分布式服务发现和配置管理工具的最新版本。

Consul 提供以下功能:

  • 服务发现:注册和查找服务。
  • 服务健康检查:监控服务健康状态。
  • 配置管理:管理和分发配置。
  • KV 存储:提供一个简单的键值存储。
  • 安全通信:使用 TLS 和 ACL 进行安全通信。

使用该镜像,您可以轻松地在您的系统上部署和管理 Consul 服务。

源镜像 docker.io/hashicorp/consul:1.21.5
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul:1.21.5
镜像ID sha256:a716e65af8e39163381b32541d1b10b1a22223ec75053600aa297b9a8170c14f
镜像TAG 1.21.5
大小 223.88MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD agent -dev -client 0.0.0.0
启动入口 docker-entrypoint.sh
工作目录 /
OS/平台 linux/amd64
浏览量 35 次
贡献者
镜像创建 2025-09-21T15:33:23.534718533Z
同步时间 2025-11-04 13:10
更新时间 2025-11-18 04:23
开放端口
8300/tcp 8301/tcp 8301/udp 8302/tcp 8302/udp 8500/tcp 8600/tcp 8600/udp
目录挂载
/consul/data
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin BIN_NAME=consul PRODUCT_VERSION=1.21.5 PRODUCT_NAME=consul
镜像标签
Consul is a datacenter runtime that provides service discovery, configuration, and orchestration.: description Consul Team <consul@hashicorp.com>: maintainer Consul: name Consul Team <consul@hashicorp.com>: org.opencontainers.image.authors Consul is a datacenter runtime that provides service discovery, configuration, and orchestration.: org.opencontainers.image.description https://developer.hashicorp.com/docs: org.opencontainers.image.documentation BSL-1.1: org.opencontainers.image.licenses https://github.com/hashicorp/consul: org.opencontainers.image.source consul: org.opencontainers.image.title https://www.consul.io/: org.opencontainers.image.url HashiCorp: org.opencontainers.image.vendor 1.21.5: org.opencontainers.image.version 3261d11abc0ae8fa92ac15acff71192ee026abf4: release 3261d11abc0ae8fa92ac15acff71192ee026abf4: revision Consul is a datacenter runtime that provides service discovery, configuration, and orchestration.: summary HashiCorp: vendor 1.21.5: version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2025-09-21 23:33:23  0.00B 设置默认要执行的命令
CMD ["agent" "-dev" "-client" "0.0.0.0"]
                        
# 2025-09-21 23:33:23  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2025-09-21 23:33:23  0.00B 执行命令并创建新的镜像层
RUN |5 PRODUCT_VERSION=1.21.5 BIN_NAME=consul PRODUCT_REVISION=3261d11abc0ae8fa92ac15acff71192ee026abf4 TARGETOS=linux TARGETARCH=amd64 /bin/sh -c chmod +x /usr/local/bin/docker-entrypoint.sh # buildkit
                        
# 2025-09-21 23:33:23  4.31KB 复制新文件或目录到容器中
COPY .release/docker/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh # buildkit
                        
# 2025-09-21 23:33:23  0.00B 声明容器运行时监听的端口
EXPOSE &{[{{202 0} {202 0}}] 0xc0003f9c00}
                        
# 2025-09-21 23:33:23  0.00B 声明容器运行时监听的端口
EXPOSE &{[{{198 0} {198 0}}] 0xc0003f9c00}
                        
# 2025-09-21 23:33:23  0.00B 声明容器运行时监听的端口
EXPOSE &{[{{193 0} {193 0}}] 0xc0003f9c00}
                        
# 2025-09-21 23:33:23  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/consul/data]
                        
# 2025-09-21 23:33:23  0.00B 执行命令并创建新的镜像层
RUN |5 PRODUCT_VERSION=1.21.5 BIN_NAME=consul PRODUCT_REVISION=3261d11abc0ae8fa92ac15acff71192ee026abf4 TARGETOS=linux TARGETARCH=amd64 /bin/sh -c test -e /etc/nsswitch.conf || echo 'hosts: files dns' > /etc/nsswitch.conf # buildkit
                        
# 2025-09-21 23:33:23  0.00B 执行命令并创建新的镜像层
RUN |5 PRODUCT_VERSION=1.21.5 BIN_NAME=consul PRODUCT_REVISION=3261d11abc0ae8fa92ac15acff71192ee026abf4 TARGETOS=linux TARGETARCH=amd64 /bin/sh -c mkdir -p /consul/data &&     mkdir -p /consul/config &&     chown -R consul:consul /consul # buildkit
                        
# 2025-09-21 23:33:23  185.11MB 复制新文件或目录到容器中
COPY dist/linux/amd64/consul /bin/ # buildkit
                        
# 2025-09-21 23:33:23  3.05KB 执行命令并创建新的镜像层
RUN |5 PRODUCT_VERSION=1.21.5 BIN_NAME=consul PRODUCT_REVISION=3261d11abc0ae8fa92ac15acff71192ee026abf4 TARGETOS=linux TARGETARCH=amd64 /bin/sh -c addgroup $BIN_NAME &&     adduser -S -G $BIN_NAME $BIN_NAME # buildkit
                        
# 2025-09-21 23:33:22  30.44MB 执行命令并创建新的镜像层
RUN |5 PRODUCT_VERSION=1.21.5 BIN_NAME=consul PRODUCT_REVISION=3261d11abc0ae8fa92ac15acff71192ee026abf4 TARGETOS=linux TARGETARCH=amd64 /bin/sh -c apk add -v --no-cache 		dumb-init 		libc6-compat 		iptables 		tzdata 		curl 		ca-certificates 		gnupg 		iputils 		libcap 		openssl 		su-exec 		jq # buildkit
                        
# 2025-09-21 23:33:21  4.92KB 复制新文件或目录到容器中
COPY LICENSE /usr/share/doc/consul/LICENSE.txt # buildkit
                        
# 2025-09-21 23:33:21  0.00B 添加元数据标签
LABEL org.opencontainers.image.authors=Consul Team <consul@hashicorp.com> org.opencontainers.image.url=https://www.consul.io/ org.opencontainers.image.documentation=https://developer.hashicorp.com/docs org.opencontainers.image.source=https://github.com/hashicorp/consul org.opencontainers.image.version=1.21.5 org.opencontainers.image.vendor=HashiCorp org.opencontainers.image.title=consul org.opencontainers.image.description=Consul is a datacenter runtime that provides service discovery, configuration, and orchestration. org.opencontainers.image.licenses=BSL-1.1 name=Consul maintainer=Consul Team <consul@hashicorp.com> vendor=HashiCorp release=3261d11abc0ae8fa92ac15acff71192ee026abf4 revision=3261d11abc0ae8fa92ac15acff71192ee026abf4 summary=Consul is a datacenter runtime that provides service discovery, configuration, and orchestration. description=Consul is a datacenter runtime that provides service discovery, configuration, and orchestration. version=1.21.5
                        
# 2025-09-21 23:33:21  0.00B 定义构建参数
ARG TARGETOS=linux TARGETARCH=amd64
                        
# 2025-09-21 23:33:21  0.00B 设置环境变量 PRODUCT_NAME
ENV PRODUCT_NAME=consul
                        
# 2025-09-21 23:33:21  0.00B 定义构建参数
ARG PRODUCT_REVISION=3261d11abc0ae8fa92ac15acff71192ee026abf4
                        
# 2025-09-21 23:33:21  0.00B 设置环境变量 PRODUCT_VERSION
ENV PRODUCT_VERSION=1.21.5
                        
# 2025-09-21 23:33:21  0.00B 设置环境变量 BIN_NAME
ENV BIN_NAME=consul
                        
# 2025-09-21 23:33:21  0.00B 定义构建参数
ARG BIN_NAME=consul
                        
# 2025-09-21 23:33:21  0.00B 定义构建参数
ARG PRODUCT_VERSION=1.21.5
                        
# 2025-07-15 19:01:16  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2025-07-15 19:01:16  8.31MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.22.1-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:a716e65af8e39163381b32541d1b10b1a22223ec75053600aa297b9a8170c14f",
    "RepoTags": [
        "hashicorp/consul:1.21.5",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul:1.21.5"
    ],
    "RepoDigests": [
        "hashicorp/consul@sha256:6126c30072690cb3173a450ff5bde120c3a01e11c9dccab83b1b2314d4c828bd",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul@sha256:036c4cd344750372dce89df0946099be6f14f6215d35905b608f7d811b1930d1"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-09-21T15:33:23.534718533Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "8300/tcp": {},
            "8301/tcp": {},
            "8301/udp": {},
            "8302/tcp": {},
            "8302/udp": {},
            "8500/tcp": {},
            "8600/tcp": {},
            "8600/udp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "BIN_NAME=consul",
            "PRODUCT_VERSION=1.21.5",
            "PRODUCT_NAME=consul"
        ],
        "Cmd": [
            "agent",
            "-dev",
            "-client",
            "0.0.0.0"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/consul/data": {}
        },
        "WorkingDir": "/",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "description": "Consul is a datacenter runtime that provides service discovery, configuration, and orchestration.",
            "maintainer": "Consul Team \u003cconsul@hashicorp.com\u003e",
            "name": "Consul",
            "org.opencontainers.image.authors": "Consul Team \u003cconsul@hashicorp.com\u003e",
            "org.opencontainers.image.description": "Consul is a datacenter runtime that provides service discovery, configuration, and orchestration.",
            "org.opencontainers.image.documentation": "https://developer.hashicorp.com/docs",
            "org.opencontainers.image.licenses": "BSL-1.1",
            "org.opencontainers.image.source": "https://github.com/hashicorp/consul",
            "org.opencontainers.image.title": "consul",
            "org.opencontainers.image.url": "https://www.consul.io/",
            "org.opencontainers.image.vendor": "HashiCorp",
            "org.opencontainers.image.version": "1.21.5",
            "release": "3261d11abc0ae8fa92ac15acff71192ee026abf4",
            "revision": "3261d11abc0ae8fa92ac15acff71192ee026abf4",
            "summary": "Consul is a datacenter runtime that provides service discovery, configuration, and orchestration.",
            "vendor": "HashiCorp",
            "version": "1.21.5"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 223875415,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/b9ca8e352f2fd0ff9b65c6660da5277c0085e2236313e658170cd37253151bcf/diff:/var/lib/docker/overlay2/18f9c8d03c2cb70734824fdefba757c7f1cf0f61effa6505c8c17f8f8c0a77f3/diff:/var/lib/docker/overlay2/8dfa5e215f3f0d3389749d83334e3c6a2bb837b2cbdd2d7f76b3b6cd0586cac6/diff:/var/lib/docker/overlay2/8dc7f3e34543088c50f6b3ad88f92f643903e170de5eaf20564f9edb57b80e09/diff:/var/lib/docker/overlay2/3701ca7606a09f892ecf7bd17b28659947e2ef04f6aaaf9648e47694fab0ac29/diff:/var/lib/docker/overlay2/463f4dd1df3eeec8f0273ea85ccc5371a8839fe1895c2351a19216f9915ef495/diff:/var/lib/docker/overlay2/c868779d6d29a6dc1ac7e91c62ac49b1724bc28fa2af64de0ec7cb9f8abe4541/diff:/var/lib/docker/overlay2/fce31083bf78fb669ced5e473ada166388fb6191ae6144c91b94c9a1629510cc/diff",
            "MergedDir": "/var/lib/docker/overlay2/a5619e111e9b1d0dbad273f608fdf6ad5483a21673f566e046cd229a5f3b472f/merged",
            "UpperDir": "/var/lib/docker/overlay2/a5619e111e9b1d0dbad273f608fdf6ad5483a21673f566e046cd229a5f3b472f/diff",
            "WorkDir": "/var/lib/docker/overlay2/a5619e111e9b1d0dbad273f608fdf6ad5483a21673f566e046cd229a5f3b472f/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:418dccb7d85a63a6aa574439840f7a6fa6fd2321b3e2394568a317735e867d35",
            "sha256:677f061995361d3048bf4b85ecfef9a3884d1cad8897f17d39280d90f7e142f0",
            "sha256:25e9a241efabc5e82c7c65932ff7332823f422202f5e6094306b59e1d46c0464",
            "sha256:abeb67d6d84da395bec970213a5ebcc59e1183c32fbb503f4abf734b9380462e",
            "sha256:7b28f72901adf47be3931d147d34be857202cf84562c47149e7f89bef7b54269",
            "sha256:77e48e6b45e96e17fbf45b69fd24c34e0e4a50cff6fcefa117df48bd407571bb",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:166b853611e4b3ba0aea4edc7b20936385ee6d17d434aa9d18ffd204a183a788",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-11-04T13:08:49.604048781+08:00"
    }
}

更多版本

docker.io/hashicorp/consul:latest

linux/amd64 docker.io216.20MB2024-11-11 09:13
1085

docker.io/hashicorp/consul:1.20.1

linux/amd64 docker.io216.20MB2025-02-11 10:08
295

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

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

docker.io/hashicorp/consul-dataplane:1.6.1

linux/amd64 docker.io157.96MB2025-02-11 10:11
221

docker.io/hashicorp/consul:1.16.2

linux/amd64 docker.io193.68MB2025-02-17 16:17
270

docker.io/hashicorp/consul:1.21.0

linux/amd64 docker.io213.88MB2025-05-08 17:23
318

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

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

docker.io/hashicorp/consul-dataplane:1.7.0

linux/amd64 docker.io157.39MB2025-05-09 15:09
163

docker.io/hashicorp/consul:1.21.1

linux/amd64 docker.io213.89MB2025-07-22 14:41
202

docker.io/hashicorp/consul:1.12.4

linux/amd64 docker.io145.47MB2025-09-22 17:45
109

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

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

docker.io/hashicorp/consul-dataplane:1.8.1

linux/amd64 docker.io169.69MB2025-09-22 17:50
73

docker.io/hashicorp/consul-telemetry-collector:0.0.2

linux/amd64 docker.io137.77MB2025-09-22 17:52
93

docker.io/hashicorp/consul:1.10.12

linux/amd64 docker.io130.36MB2025-09-25 18:28
83

docker.io/hashicorp/consul:1.21.5

linux/arm64 docker.io224.03MB2025-10-09 17:46
102

docker.io/hashicorp/consul:1.22.0

linux/amd64 docker.io219.12MB2025-10-29 13:34
76

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

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

docker.io/hashicorp/consul-dataplane:1.9.0

linux/amd64 docker.io277.80MB2025-10-30 11:47
63

docker.io/hashicorp/consul:1.21.5

linux/amd64 docker.io223.88MB2025-11-04 13:10
34