google / cadvisor

Analyzes resource usage and performance characteristics of running containers.
Other
17.25k stars 2.33k forks source link

Docker Compose for cAdvisor #3589

Closed StaRipper closed 2 months ago

StaRipper commented 2 months ago

name: cadvisor
services:
    cadvisor:
        volumes:
            - /:/rootfs:ro
            - /var/run:/var/run:ro
            - /sys:/sys:ro
            - /var/lib/docker/:/var/lib/docker:ro
            - /dev/disk/:/dev/disk:ro
        ports:
            - 8080:8080
        container_name: cadvisor
        network_mode: bridge
        privileged: true
#        devices:
#            - /dev/kmsg
        image: gcr.io/cadvisor/cadvisor:latest