2022-01-02 12:37:45 +01:00
|
|
|
---
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
cadvisor:
|
2022-11-17 09:14:23 +01:00
|
|
|
# TODO: latest tag is not updated, check latest release https://github.com/google/cadvisor/releases
|
|
|
|
image: gcr.io/cadvisor/cadvisor:v0.45.0
|
2022-01-02 12:37:45 +01:00
|
|
|
container_name: cadvisor
|
2022-11-17 09:14:23 +01:00
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
2022-08-15 16:41:43 +02:00
|
|
|
network_mode: host
|
2022-01-02 12:37:45 +01:00
|
|
|
volumes:
|
|
|
|
- /:/rootfs:ro
|
|
|
|
- /var/run:/var/run:ro
|
|
|
|
- /sys:/sys:ro
|
|
|
|
- /var/lib/docker/:/var/lib/docker:ro
|
|
|
|
- /dev/disk/:/dev/disk:ro
|
|
|
|
devices:
|
2022-01-07 13:17:13 +01:00
|
|
|
- /dev/kmsg
|
2022-08-11 05:00:29 +02:00
|
|
|
restart: unless-stopped
|
2022-11-17 09:14:23 +01:00
|
|
|
privileged: true
|