Backdocker.io/hashicorp/consul
docker.io

docker.io/hashicorp/consul:1.18

Automatic build of consul based on the current release. See README for more information on usage.

Size
74.77 MB
Local pulls
6
Upstream pulls
106,231,193
Synced at
2026-08-24 09:31:42

China image

registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:1.18

Source image

docker.io/hashicorp/consul:1.18

Image info

Image ID
sha256:25a8659bdf14ff9da45ce38dfacd94cb868633b60fe7291a92d657ff7edd9ba9
Image tag
1.18
Image size
74.77 MB
Platform
linux/arm64
Registry
docker.io
CMD
agent -dev -client 0.0.0.0
Entrypoint
docker-entrypoint.sh
Working dir
User
StopSignal
Created
2024-05-17T14:43:44.000Z

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_NAMEconsul
PRODUCT_VERSION1.18.2
PRODUCT_NAMEconsul

Labels 10

version1.18.2
org.opencontainers.image.urlhttps://www.consul.io/
org.opencontainers.image.titleconsul
org.opencontainers.image.sourcehttps://github.com/hashicorp/consul
org.opencontainers.image.vendorHashiCorp
org.opencontainers.image.authorsConsul Team <consul@hashicorp.com>
org.opencontainers.image.version1.18.2
org.opencontainers.image.licensesBSL-1.1
org.opencontainers.image.descriptionConsul is a datacenter runtime that provides service discovery, configuration, and orchestration.
org.opencontainers.image.documentationhttps://www.consul.io/docs

Pull commands

Docker
docker pull registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:1.18
docker tag registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:1.18 docker.io/hashicorp/consul:1.18
Containerd
ctr images pull registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:1.18
ctr images tag registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:1.18 docker.io/hashicorp/consul:1.18
YAML quick replace
sed -i 's#docker.io/hashicorp/consul:1.18#registry.cn-global.starbucket.com.cn/starbucket/docker.io/hashicorp/consul:1.18#' 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 docker
Containerd

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 24

2024-05-16 19:19:10empty layer
CMD ["agent" "-dev" "-client" "0.0.0.0"]
2024-05-16 19:19:10empty layer
ENTRYPOINT ["docker-entrypoint.sh"]
2024-05-16 19:19:10
RUN |5 PRODUCT_VERSION=1.18.2 BIN_NAME=consul PRODUCT_REVISION=9fc827caf808b6ef1dc8c0748c3c4dce95d5b33a TARGETOS=linux TARGETARCH=arm64 /bin/sh -c chmod +x /usr/local/bin/docker-entrypoint.sh # buildkit
2024-05-16 19:19:10
COPY .release/docker/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh # buildkit
2024-05-16 19:19:10empty layer
EXPOSE map[8500/tcp:{} 8600/tcp:{} 8600/udp:{}]
2024-05-16 19:19:10empty layer
EXPOSE map[8301/tcp:{} 8301/udp:{} 8302/tcp:{} 8302/udp:{}]
2024-05-16 19:19:10empty layer
EXPOSE map[8300/tcp:{}]
2024-05-16 19:19:10empty layer
VOLUME [/consul/data]

More synced tags