Backdocker.io/hashicorp/consul
docker.io
docker.io/hashicorp/consul:2.0.2
Automatic build of consul based on the current release. See README for more information on usage.
Size
79.73 MB
Local pulls
6
Upstream pulls
106,231,193
Synced at
2026-08-24 09:30:59
China image
registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:2.0.2
Source image
docker.io/hashicorp/consul:2.0.2
Image info
- Image ID
- sha256:86b2a80fb80acab8d6383344256229a6edb0e37212eb88b7612699caa6ce536e
- Image tag
- 2.0.2
- Image size
- 79.73 MB
- Platform
- linux/arm64
- Registry
- docker.io
- Project
- Hub pageAll tagsLocal repo
- CMD
- agent -dev -client 0.0.0.0
- Entrypoint
- docker-entrypoint.sh
- Working dir
- /
- User
- —
- StopSignal
- —
- Created
- 2026-07-08T10:41:26.400Z
Exposed ports 8
- 8300/tcp
- 8301/tcp
- 8301/udp
- 8302/tcp
- 8302/udp
- 8500/tcp
- 8600/tcp
- 8600/udp
Volumes
- /consul/data
Environment 4
| PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| BIN_NAME | consul |
| PRODUCT_VERSION | 2.0.2 |
| PRODUCT_NAME | consul |
Labels 17
| name | Consul |
| vendor | HashiCorp |
| release | ca5bc12bf2f9a3b10d4345aaa8050b0d3b523664 |
| summary | Consul is a datacenter runtime that provides service discovery, configuration, and orchestration. |
| version | 2.0.2 |
| revision | ca5bc12bf2f9a3b10d4345aaa8050b0d3b523664 |
| maintainer | Consul Team <consul@hashicorp.com> |
| description | Consul is a datacenter runtime that provides service discovery, configuration, and orchestration. |
| org.opencontainers.image.url | https://www.consul.io/ |
| org.opencontainers.image.title | consul |
| org.opencontainers.image.source | https://github.com/hashicorp/consul |
| org.opencontainers.image.vendor | HashiCorp |
| org.opencontainers.image.authors | Consul Team <consul@hashicorp.com> |
| org.opencontainers.image.version | 2.0.2 |
| org.opencontainers.image.licenses | BSL-1.1 |
| 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 |
Pull commands
Docker
docker pull registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:2.0.2
docker tag registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:2.0.2 docker.io/hashicorp/consul:2.0.2
Containerd
ctr images pull registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:2.0.2
ctr images tag registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:2.0.2 docker.io/hashicorp/consul:2.0.2
YAML quick replace
sed -i 's#docker.io/hashicorp/consul:2.0.2#registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:2.0.2#' deployment.yaml
Global registry mirror
Docker
Write Docker daemon.json so registry-mirrors points to this site, then restart Docker
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<'EOF'
{
"registry-mirrors": ["https://registry.cn-global.starbucket.com.cn"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart dockerContainerd
Write containerd certs.d hosts.toml so docker.io pulls via this site, then restart containerd
sudo mkdir -p /etc/containerd/certs.d/docker.io sudo tee /etc/containerd/certs.d/docker.io/hosts.toml <<'EOF' server = "https://docker.io" [host."https://registry.cn-global.starbucket.com.cn"] capabilities = ["pull", "resolve"] EOF sudo mkdir -p /etc/containerd if [ ! -f /etc/containerd/config.toml ]; then sudo containerd config default | sudo tee /etc/containerd/config.toml >/dev/null fi sudo sed -i 's#config_path = ""#config_path = "/etc/containerd/certs.d"#' /etc/containerd/config.toml sudo systemctl restart containerd
Build history 23
2026-07-08 09:30:47empty layer
CMD ["agent" "-dev" "-client" "0.0.0.0"]
2026-07-08 09:30:47empty layer
ENTRYPOINT ["docker-entrypoint.sh"]
2026-07-08 09:30:47
RUN |5 PRODUCT_VERSION=2.0.2 BIN_NAME=consul PRODUCT_REVISION=ca5bc12bf2f9a3b10d4345aaa8050b0d3b523664 TARGETOS=linux TARGETARCH=arm64 /bin/sh -c chmod +x /usr/local/bin/docker-entrypoint.sh # buildkit
2026-07-08 09:30:47
COPY .release/docker/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh # buildkit
2026-07-08 09:30:47empty layer
EXPOSE [8500/tcp 8600/tcp 8600/udp]
2026-07-08 09:30:47empty layer
EXPOSE [8301/tcp 8301/udp 8302/tcp 8302/udp]
2026-07-08 09:30:47empty layer
EXPOSE [8300/tcp]
2026-07-08 09:30:47empty layer
VOLUME [/consul/data]