我使用以下配置运行 Cadvisor,但容器重新启动!
cadvisor:
image: google/cadvisor:v0.33.0
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
depends_on:
- redis
...
错误是:
F0117 09:19:19.566897 1 cadvisor.go:152] Failed to create a Container Manager: mountpoint for cpu not found
F0117 09:19:20.741998 1 cadvisor.go:152] Failed to create a Container Manager: mountpoint for cpu not found
您应该将基本图像更改为 gcr.io/cadvisor/cadvisor
为什么 google/cadvisor 没有用?