docker 安装cadvisor报错:W1104 02:15:33.324132 1 manager.go:349] Could not configure a source for OOM detection, disabling OOM events: open /dev/kmsg: no such file or directory

解决方法:

1:使用特权模式启动--privileged=true

2:docker run -d --volume=/:/rootfs:ro --volume=/var/run:/var/run:ro --volume=/sys:/sys:ro --volume=/var/lib/docker/:/var/lib/docker:ro --volume=/dev/disk/:/dev/disk:ro --publish=80:80:8080 --detach=true --name=cadvisor --privileged=true google/cadvisor:lates