build(base): 更新 cAdvisor 部署配置

- 升级镜像版本至 0.60.6
- 移除特权模式并添加系统日志权限
- 缩减运行时目录挂载并添加内核消息设备
This commit is contained in:
cnphpbb
2026-11-08 19:29:50 +08:00
parent 9ecabfae6d
commit 1b1a23dca4
3 changed files with 6 additions and 5 deletions
+5 -2
View File
@@ -8,10 +8,13 @@ services:
container_name: cadvisor-prod
ports:
- 9180:8080
cap_add:
- SYSLOG
volumes:
- /:/rootfs:ro
- /data/docker/:/var/lib/docker:ro
- /var/run:/var/run:rw
- /var/run/docker.sock:/var/run/docker.sock # 只要 socket,不要整个 /var/run
- /sys:/sys:ro
- /dev/disk/:/dev/disk:ro
privileged: true
devices:
- /dev/kmsg:/dev/kmsg:ro