Backdocker.io/hashicorp/consul
docker.io
docker.io/hashicorp/consul:1.16.2
Automatic build of consul based on the current release. See README for more information on usage.
Size
67.61 MB
Local pulls
6
Upstream pulls
106,231,193
Synced at
2026-08-24 09:31:25
China image
registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:1.16.2
Source image
docker.io/hashicorp/consul:1.16.2
Image info
- Image ID
- sha256:fb4778d2f5f9912f748ddd1f7e4098a3d7d0c44ebcec5f1d826b6bbccc65e824
- Image tag
- 1.16.2
- Image size
- 67.61 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
- 2023-09-19T20:11:41.000Z
Exposed ports 8
- 8300/tcp
- 8301/tcp
- 8301/udp
- 8302/tcp
- 8302/udp
- 8500/tcp
- 8600/tcp
- 8600/udp
Volumes
- /consul/data
Environment 3
| PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| BIN_NAME | consul |
| PRODUCT_VERSION | 1.16.2 |
Labels 9
| version | 1.16.2 |
| 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 | 1.16.2 |
| org.opencontainers.image.description | Consul is a datacenter runtime that provides service discovery, configuration, and orchestration. |
| org.opencontainers.image.documentation | https://www.consul.io/docs |
Pull commands
Docker
docker pull registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:1.16.2
docker tag registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:1.16.2 docker.io/hashicorp/consul:1.16.2
Containerd
ctr images pull registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:1.16.2
ctr images tag registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:1.16.2 docker.io/hashicorp/consul:1.16.2
YAML quick replace
sed -i 's#docker.io/hashicorp/consul:1.16.2#registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:1.16.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
2023-09-19 19:45:57empty layer
CMD ["agent" "-dev" "-client" "0.0.0.0"]
2023-09-19 19:45:57empty layer
ENTRYPOINT ["docker-entrypoint.sh"]
2023-09-19 19:45:57
RUN |6 PRODUCT_VERSION=1.16.2 BIN_NAME=consul PRODUCT_REVISION=68f81912f2effcd310703eb0584eaa6a418fecf0 PRODUCT_NAME=consul TARGETOS=linux TARGETARCH=arm64 /bin/sh -c chmod +x /usr/local/bin/docker-entrypoint.sh # buildkit
2023-09-19 19:45:57
COPY .release/docker/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh # buildkit
2023-09-19 19:45:57empty layer
EXPOSE map[8500/tcp:{} 8600/tcp:{} 8600/udp:{}]2023-09-19 19:45:57empty layer
EXPOSE map[8301/tcp:{} 8301/udp:{} 8302/tcp:{} 8302/udp:{}]2023-09-19 19:45:57empty layer
EXPOSE map[8300/tcp:{}]2023-09-19 19:45:57empty layer
VOLUME [/consul/data]