From 60df65e65b06b22e3cd9396420e1680f7de91c66 Mon Sep 17 00:00:00 2001 From: yeasy Date: Thu, 26 Mar 2026 20:04:37 -0700 Subject: [PATCH] Update cAdvisor dive hadolint versions --- 19_observability/19.3_performance_optimization.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/19_observability/19.3_performance_optimization.md b/19_observability/19.3_performance_optimization.md index bc20b89..d8ae2be 100644 --- a/19_observability/19.3_performance_optimization.md +++ b/19_observability/19.3_performance_optimization.md @@ -101,7 +101,7 @@ cAdvisor 是 Google 开发的容器监控工具,提供比 `docker stats` 更 ```yaml services: cadvisor: - image: ghcr.io/google/cadvisor:v0.51.0 + image: ghcr.io/google/cadvisor:v0.56.0 container_name: cadvisor ports: - "8080:8080" @@ -192,7 +192,7 @@ services: - monitoring cadvisor: - image: ghcr.io/google/cadvisor:v0.51.0 + image: ghcr.io/google/cadvisor:v0.56.0 container_name: cadvisor ports: - "8080:8080" @@ -399,8 +399,8 @@ services: ```bash # 安装 dive -wget https://github.com/wagoodman/dive/releases/download/v0.11.0/dive_0.11.0_linux_amd64.deb -sudo apt install ./dive_0.11.0_linux_amd64.deb +wget https://github.com/wagoodman/dive/releases/download/v0.13.1/dive_0.13.1_linux_amd64.deb +sudo apt install ./dive_0.13.1_linux_amd64.deb # 分析镜像 dive myapp:latest @@ -411,7 +411,7 @@ dive myapp:latest ```bash # 安装 hadolint -curl https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 -L -o hadolint +curl https://github.com/hadolint/hadolint/releases/download/v2.14.0/hadolint-Linux-x86_64 -L -o hadolint chmod +x hadolint # 检查 Dockerfile 最佳实践