mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
22 lines
493 B
YAML
Executable File
22 lines
493 B
YAML
Executable File
version: '3'
|
|
|
|
services:
|
|
cadvisor:
|
|
image: registry.cn-hangzhou.aliyuncs.com/kennylee/cadvisor:apline
|
|
volumes:
|
|
- /:/rootfs:ro
|
|
- /var/run:/var/run:rw
|
|
- /sys:/sys:ro
|
|
- /var/lib/docker/:/var/lib/docker:ro
|
|
- /cgroup:/cgroup:ro
|
|
ports:
|
|
- 8080
|
|
restart: always
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '30m'
|
|
max-file: '1'
|
|
|
|
|