mirror of
https://github.com/dqzboy/Docker-Proxy.git
synced 2026-01-13 00:27:23 +08:00
fix: Disable exporting traces
This commit is contained in:
@@ -4,7 +4,8 @@ services:
|
||||
container_name: reg-docker-hub
|
||||
image: dqzboy/registry:latest
|
||||
restart: always
|
||||
#environment:
|
||||
environment:
|
||||
- OTEL_TRACES_EXPORTER=none
|
||||
#- http=http://host:port
|
||||
#- https=http://host:port
|
||||
volumes:
|
||||
@@ -21,7 +22,8 @@ services:
|
||||
container_name: reg-ghcr
|
||||
image: dqzboy/registry:latest
|
||||
restart: always
|
||||
#environment:
|
||||
environment:
|
||||
- OTEL_TRACES_EXPORTER=none
|
||||
#- http=http://host:port
|
||||
#- https=http://host:port
|
||||
volumes:
|
||||
@@ -38,7 +40,8 @@ services:
|
||||
container_name: reg-gcr
|
||||
image: dqzboy/registry:latest
|
||||
restart: always
|
||||
#environment:
|
||||
environment:
|
||||
- OTEL_TRACES_EXPORTER=none
|
||||
#- http=http://host:port
|
||||
#- https=http://host:port
|
||||
volumes:
|
||||
@@ -55,7 +58,8 @@ services:
|
||||
container_name: reg-k8s-gcr
|
||||
image: dqzboy/registry:latest
|
||||
restart: always
|
||||
#environment:
|
||||
environment:
|
||||
- OTEL_TRACES_EXPORTER=none
|
||||
#- http=http://host:port
|
||||
#- https=http://host:port
|
||||
volumes:
|
||||
@@ -67,12 +71,13 @@ services:
|
||||
networks:
|
||||
- registry-net
|
||||
|
||||
## registry.k8s.io
|
||||
## registry.k8s.io
|
||||
k8s:
|
||||
container_name: reg-k8s
|
||||
image: dqzboy/registry:latest
|
||||
restart: always
|
||||
#environment:
|
||||
environment:
|
||||
- OTEL_TRACES_EXPORTER=none
|
||||
#- http=http://host:port
|
||||
#- https=http://host:port
|
||||
volumes:
|
||||
@@ -89,7 +94,8 @@ services:
|
||||
container_name: reg-quay
|
||||
image: dqzboy/registry:latest
|
||||
restart: always
|
||||
#environment:
|
||||
environment:
|
||||
- OTEL_TRACES_EXPORTER=none
|
||||
#- http=http://host:port
|
||||
#- https=http://host:port
|
||||
volumes:
|
||||
@@ -106,7 +112,8 @@ services:
|
||||
container_name: reg-mcr
|
||||
image: dqzboy/registry:latest
|
||||
restart: always
|
||||
#environment:
|
||||
environment:
|
||||
- OTEL_TRACES_EXPORTER=none
|
||||
#- http=http://host:port
|
||||
#- https=http://host:port
|
||||
volumes:
|
||||
@@ -123,7 +130,8 @@ services:
|
||||
container_name: reg-elastic
|
||||
image: dqzboy/registry:latest
|
||||
restart: always
|
||||
#environment:
|
||||
environment:
|
||||
- OTEL_TRACES_EXPORTER=none
|
||||
#- http=http://host:port
|
||||
#- https=http://host:port
|
||||
volumes:
|
||||
|
||||
@@ -35,6 +35,21 @@ GREEN="\033[0;32m"
|
||||
RED="\033[31m"
|
||||
YELLOW="\033[33m"
|
||||
RESET="\033[0m"
|
||||
BLUE="\033[0;34m"
|
||||
MAGENTA="\033[0;35m"
|
||||
CYAN="\033[0;36m"
|
||||
WHITE="\033[1;37m"
|
||||
BLACK="\033[0;30m"
|
||||
LIGHT_GREEN="\033[1;32m"
|
||||
LIGHT_RED="\033[1;31m"
|
||||
LIGHT_YELLOW="\033[1;33m"
|
||||
LIGHT_BLUE="\033[1;34m"
|
||||
LIGHT_MAGENTA="\033[1;35m"
|
||||
LIGHT_CYAN="\033[1;36m"
|
||||
BOLD="\033[1m"
|
||||
UNDERLINE="\033[4m"
|
||||
BLINK="\033[5m"
|
||||
REVERSE="\033[7m"
|
||||
|
||||
INFO="[${GREEN}INFO${RESET}]"
|
||||
ERROR="[${RED}ERROR${RESET}]"
|
||||
@@ -1361,7 +1376,7 @@ function DOWN_CONFIG() {
|
||||
done
|
||||
fi
|
||||
|
||||
WARN ">>> 说明: Proxy代理缓存过期时间.单位:ns、us、ms、s、m、h,不指定默认ns, 0表示禁用 <<<"
|
||||
WARN "${BOLD}${GREEN}提示:${RESET} ${CYAN}Proxy代理缓存过期时间.${RESET} ${MAGENTA}单位:ns、us、ms、s、m、h.默认ns,0表示禁用${RESET}"
|
||||
read -e -p "$(echo -e ${INFO} ${GREEN}"是否要修改缓存时间? (y/n): "${RESET})" modify_cache
|
||||
while [[ "$modify_cache" != "y" && "$modify_cache" != "n" ]]; do
|
||||
WARN "无效输入,请输入 'y' 或 'n'。"
|
||||
@@ -1390,7 +1405,6 @@ case $modify_config in
|
||||
WARN "代理地址不能为空,请重新输入。"
|
||||
read -e -p "$(INFO "输入代理地址 (e.g. host:port): ")" url
|
||||
done
|
||||
sed -i "s@#environment:@environment:@g" ${PROXY_DIR}/docker-compose.yaml
|
||||
sed -i "s@#- http=http://host:port@- http_proxy=http://${url}@g" ${PROXY_DIR}/docker-compose.yaml
|
||||
sed -i "s@#- https=http://host:port@- https_proxy=http://${url}@g" ${PROXY_DIR}/docker-compose.yaml
|
||||
|
||||
@@ -1408,7 +1422,7 @@ esac
|
||||
|
||||
# 只配置本机Docker走代理,加速镜像下载
|
||||
function DOCKER_PROXY_HTTP() {
|
||||
WARN ">>> 说明:配置本机Docker服务走代理,加速本机Docker镜像下载 <<<"
|
||||
WARN "${BOLD}${LIGHT_GREEN}提示:${RESET} ${LIGHT_CYAN}配置本机Docker服务走代理,加速本机Docker镜像下载${RESET}"
|
||||
read -e -p "$(echo -e ${INFO} ${GREEN}"是否添加代理? (y/n): "${RESET})" modify_proxy
|
||||
case $modify_proxy in
|
||||
[Yy]* )
|
||||
|
||||
Reference in New Issue
Block a user