diff --git a/base/cadvisor.stack.yaml b/base/cadvisor.stack.yaml index 05ccfe0..26dbd91 100644 --- a/base/cadvisor.stack.yaml +++ b/base/cadvisor.stack.yaml @@ -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 \ No newline at end of file + devices: + - /dev/kmsg:/dev/kmsg:ro diff --git a/base/env.cfg b/base/env.cfg deleted file mode 100644 index 3415203..0000000 --- a/base/env.cfg +++ /dev/null @@ -1,2 +0,0 @@ -Cadvisor_Tag_Ver=v0.53.0 -Cadvisor_Image=hub.6t7.net/base/cadvisor:${Cadvisor_Tag_Ver} \ No newline at end of file diff --git a/base/env.cfg.example b/base/env.cfg.example index 99ce690..e8f6c30 100644 --- a/base/env.cfg.example +++ b/base/env.cfg.example @@ -8,6 +8,6 @@ # $EDITOR env.cfg # 填入真实密码/密钥后保存 # docker compose -p base --env-file ./env.cfg -f ./stack.yml up -d # -Cadvisor_Tag_Ver=v0.53.0 +Cadvisor_Tag_Ver=0.60.6 Cadvisor_Image=hub.6t7.net/base/cadvisor:${Cadvisor_Tag_Ver}