fix: 移除cAdvisor安全限制并启用特权模式

为了允许cAdvisor访问更多主机信息以提供完整的监控数据,移除了no-new-privileges安全选项并启用privileged模式
This commit is contained in:
cnphpbb
2025-12-03 18:34:41 +08:00
parent 31b7f1f855
commit a3107467af

View File

@@ -15,6 +15,5 @@ services:
- '/var/run:/var/run:ro' - '/var/run:/var/run:ro'
- '/:/rootfs:ro' - '/:/rootfs:ro'
user: '1000:1000' user: '1000:1000'
security_opt: privileged: true
- no-new-privileges
read_only: true read_only: true