docker-compose.yml 493 B

123456789101112131415161718192021
  1. version: '3'
  2. services:
  3. cadvisor:
  4. image: registry.cn-hangzhou.aliyuncs.com/kennylee/cadvisor:apline
  5. volumes:
  6. - /:/rootfs:ro
  7. - /var/run:/var/run:rw
  8. - /sys:/sys:ro
  9. - /var/lib/docker/:/var/lib/docker:ro
  10. - /cgroup:/cgroup:ro
  11. ports:
  12. - 8080
  13. restart: always
  14. logging:
  15. driver: 'json-file'
  16. options:
  17. max-size: '30m'
  18. max-file: '1'