docker 安装cadvisor报错:Could not configure a source for OOM detection, disabling OOM events: open /dev/

 

Could not configure a source for OOM detection, disabling OOM events: open /dev/kmsg: no such file or directory

运行命令

docker run -d -p 8090:8080 --name cadvisor -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys:ro -v /var/lib/docker/:/var/lib/docker:ro google/cadvisor:latest

使用docker logs 查看你日志有以下错误:

只有这一行错误,没别的信息

[root@infra ~]# docker logs -f  bec5170f382d
W1111 03:06:47.818365       1 manager.go:349] Could not configure a source for OOM detection, disabling OOM events: open /dev/kmsg: no such file or directory

解决

使用特权模式运行,加上: --privileged=true

docker run -d -p 8090:8080 --name cadvisor  --privileged=true -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys:ro -v /var/lib/docker/:/var/lib/docker:ro google/cadvisor:latest

https://github.com/google/cadvisor/issues/2150

展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 编程工作室 设计师: CSDN官方博客
应支付0元
点击重新获取
扫码支付

支付成功即可阅读