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 最佳实践