From d0c56cd4babe5ad5c9e952efced5a8b5b58ca5c5 Mon Sep 17 00:00:00 2001 From: Erik Seliger Date: Tue, 26 Oct 2021 23:19:45 +0200 Subject: [PATCH] Fix docker registry metrics scraping (#26685) Forgot to expose the port :( --- enterprise/cmd/executor/docker-mirror/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enterprise/cmd/executor/docker-mirror/install.sh b/enterprise/cmd/executor/docker-mirror/install.sh index 12cc96b2895c1..637b9e2317e59 100755 --- a/enterprise/cmd/executor/docker-mirror/install.sh +++ b/enterprise/cmd/executor/docker-mirror/install.sh @@ -79,7 +79,7 @@ http: headers: X-Content-Type-Options: [nosniff] debug: - addr: localhost:5001 + addr: :5001 prometheus: enabled: true path: /metrics @@ -93,7 +93,7 @@ proxy: EOF # Run registry as a persistent daemon container. - docker run -d --restart=always -p 5000:5000 -v ${DOCKER_REGISTRY_CONFIG_FILE}:/etc/docker/registry/config.yml --name registry registry:2 + docker run -d --restart=always -p 5000:5000 -p 5001:5001 -v ${DOCKER_REGISTRY_CONFIG_FILE}:/etc/docker/registry/config.yml --name registry registry:2 } function install_node_exporter() {