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

docker.io/hashicorp/consul:1.21.5 - 国内下载镜像源 浏览次数:62 温馨提示: 这是一个 linux/arm64 系统架构镜像

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-linuxarm64
镜像ID sha256:7d37dee5d095d15953bd41fb39efe85aae6e056449143c6751d32ccf6705065a
镜像TAG 1.21.5-linuxarm64
大小 224.03MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD agent -dev -client 0.0.0.0
启动入口 docker-entrypoint.sh
工作目录 /
OS/平台 linux/arm64
浏览量 62 次
贡献者
镜像创建 2025-09-21T15:33:33.123210453Z
同步时间 2025-10-09 17:46
更新时间 2025-10-24 20:11
开放端口
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-linuxarm64
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul:1.21.5-linuxarm64  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-linuxarm64
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul:1.21.5-linuxarm64  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-linuxarm64#' 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-linuxarm64 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul:1.21.5-linuxarm64  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-linuxarm64 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul:1.21.5-linuxarm64  docker.io/hashicorp/consul:1.21.5'

镜像构建历史


# 2025-09-21 23:33:33  0.00B 设置默认要执行的命令
CMD ["agent" "-dev" "-client" "0.0.0.0"]
                        
# 2025-09-21 23:33:33  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2025-09-21 23:33:33  0.00B 执行命令并创建新的镜像层
RUN |5 PRODUCT_VERSION=1.21.5 BIN_NAME=consul PRODUCT_REVISION=3261d11abc0ae8fa92ac15acff71192ee026abf4 TARGETOS=linux TARGETARCH=arm64 /bin/sh -c chmod +x /usr/local/bin/docker-entrypoint.sh # buildkit
                        
# 2025-09-21 23:33:33  4.31KB 复制新文件或目录到容器中
COPY .release/docker/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh # buildkit
                        
# 2025-09-21 23:33:33  0.00B 声明容器运行时监听的端口
EXPOSE &{[{{202 0} {202 0}}] 0xc000051500}
                        
# 2025-09-21 23:33:33  0.00B 声明容器运行时监听的端口
EXPOSE &{[{{198 0} {198 0}}] 0xc000051500}
                        
# 2025-09-21 23:33:33  0.00B 声明容器运行时监听的端口
EXPOSE &{[{{193 0} {193 0}}] 0xc000051500}
                        
# 2025-09-21 23:33:33  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/consul/data]
                        
# 2025-09-21 23:33:33  0.00B 执行命令并创建新的镜像层
RUN |5 PRODUCT_VERSION=1.21.5 BIN_NAME=consul PRODUCT_REVISION=3261d11abc0ae8fa92ac15acff71192ee026abf4 TARGETOS=linux TARGETARCH=arm64 /bin/sh -c test -e /etc/nsswitch.conf || echo 'hosts: files dns' > /etc/nsswitch.conf # buildkit
                        
# 2025-09-21 23:33:32  0.00B 执行命令并创建新的镜像层
RUN |5 PRODUCT_VERSION=1.21.5 BIN_NAME=consul PRODUCT_REVISION=3261d11abc0ae8fa92ac15acff71192ee026abf4 TARGETOS=linux TARGETARCH=arm64 /bin/sh -c mkdir -p /consul/data &&     mkdir -p /consul/config &&     chown -R consul:consul /consul # buildkit
                        
# 2025-09-21 23:33:32  176.60MB 复制新文件或目录到容器中
COPY dist/linux/arm64/consul /bin/ # buildkit
                        
# 2025-09-21 23:33:32  3.05KB 执行命令并创建新的镜像层
RUN |5 PRODUCT_VERSION=1.21.5 BIN_NAME=consul PRODUCT_REVISION=3261d11abc0ae8fa92ac15acff71192ee026abf4 TARGETOS=linux TARGETARCH=arm64 /bin/sh -c addgroup $BIN_NAME &&     adduser -S -G $BIN_NAME $BIN_NAME # buildkit
                        
# 2025-09-21 23:33:32  38.91MB 执行命令并创建新的镜像层
RUN |5 PRODUCT_VERSION=1.21.5 BIN_NAME=consul PRODUCT_REVISION=3261d11abc0ae8fa92ac15acff71192ee026abf4 TARGETOS=linux TARGETARCH=arm64 /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:28  4.92KB 复制新文件或目录到容器中
COPY LICENSE /usr/share/doc/consul/LICENSE.txt # buildkit
                        
# 2025-09-21 23:33:28  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:28  0.00B 定义构建参数
ARG TARGETOS=linux TARGETARCH=arm64
                        
# 2025-09-21 23:33:28  0.00B 设置环境变量 PRODUCT_NAME
ENV PRODUCT_NAME=consul
                        
# 2025-09-21 23:33:28  0.00B 定义构建参数
ARG PRODUCT_REVISION=3261d11abc0ae8fa92ac15acff71192ee026abf4
                        
# 2025-09-21 23:33:28  0.00B 设置环境变量 PRODUCT_VERSION
ENV PRODUCT_VERSION=1.21.5
                        
# 2025-09-21 23:33:28  0.00B 设置环境变量 BIN_NAME
ENV BIN_NAME=consul
                        
# 2025-09-21 23:33:28  0.00B 定义构建参数
ARG BIN_NAME=consul
                        
# 2025-09-21 23:33:28  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.51MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.22.1-aarch64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:7d37dee5d095d15953bd41fb39efe85aae6e056449143c6751d32ccf6705065a",
    "RepoTags": [
        "hashicorp/consul:1.21.5",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul:1.21.5-linuxarm64"
    ],
    "RepoDigests": [
        "hashicorp/consul@sha256:6126c30072690cb3173a450ff5bde120c3a01e11c9dccab83b1b2314d4c828bd",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hashicorp/consul@sha256:a755f07a8e197987d46fd26bbdc7df3edee074a669d40e4b9d0e8a5deaeda524"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-09-21T15:33:33.123210453Z",
    "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": "arm64",
    "Os": "linux",
    "Size": 224030233,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/fa4f9557a4e542588a9b3153d8313d2aa6cbeee13d331245643994966de4aee6/diff:/var/lib/docker/overlay2/59be425c0649a49e39ad035a9a258d1d34eaf9c24fbcec8bb1e090084f8c2a94/diff:/var/lib/docker/overlay2/409c044ecdf804efe02d04a7d3459f5c3fa6018ef77350874efff8cdb8d6abca/diff:/var/lib/docker/overlay2/4ec1f292f9218755e1c3c081d7d0b3570dc6ef178096fb785a9d27ee9e9ee4b0/diff:/var/lib/docker/overlay2/3a62e8f9d5b528bb1fa45b5e915c45b74d5ef02eee9ea1ac6464900942d77f50/diff:/var/lib/docker/overlay2/ef4146aa414d01da342544f0c60fa90ac05d65cd282e9911777060dc87ba660a/diff:/var/lib/docker/overlay2/cf826e16de440606cb6f3562d8301baab796ccb25aa8dbbe12650a81e4c74a5d/diff:/var/lib/docker/overlay2/f5e718d8a0e870ff4cf6480f22588d909d8993919d5d119bfbea43bb872e48fe/diff",
            "MergedDir": "/var/lib/docker/overlay2/d256a03cc3ffebdb1ac52dc61d23d71bf849e9147a6c3836889f2e35d7942a35/merged",
            "UpperDir": "/var/lib/docker/overlay2/d256a03cc3ffebdb1ac52dc61d23d71bf849e9147a6c3836889f2e35d7942a35/diff",
            "WorkDir": "/var/lib/docker/overlay2/d256a03cc3ffebdb1ac52dc61d23d71bf849e9147a6c3836889f2e35d7942a35/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:0b83d017db6efafadf6b3f18d087d2ce1d67d8f0e927dc7254b0ad088074cd3a",
            "sha256:17ca300e787ff9f311b562d57812835c023adc65d20d702459729a3658c34987",
            "sha256:1c6e96c0183ae0142e3780a297ab32b6b68ac4ce4e021b0a36c59bf7327d744b",
            "sha256:00d04cfddc0f622a9c191988b4a4ad6a34fb35e32b536ea66f7e8cc5cd61367e",
            "sha256:df2908eae4398173b0c660c07d8546e9ccfa2a266de8cdaf05c790e01e263487",
            "sha256:8d57a16501fd582d6ecb6bb39f5f3e79acea58c41abc36e5159bcdaf0b40b346",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:912b0a722fd01ca4ed5882277ec293d2a1e503d8a98938cbf16bc28b69df8d67",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-10-09T17:46:36.286339028+08:00"
    }
}

更多版本

docker.io/hashicorp/consul:latest

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

docker.io/hashicorp/consul:1.20.1

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

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

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

docker.io/hashicorp/consul-dataplane:1.6.1

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

docker.io/hashicorp/consul:1.16.2

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

docker.io/hashicorp/consul:1.21.0

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

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

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

docker.io/hashicorp/consul-dataplane:1.7.0

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

docker.io/hashicorp/consul:1.21.1

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

docker.io/hashicorp/consul:1.12.4

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

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

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

docker.io/hashicorp/consul-dataplane:1.8.1

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

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

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

docker.io/hashicorp/consul:1.10.12

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

docker.io/hashicorp/consul:1.21.5

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