运维开发网

manager.go:349] Could not configure a source for

运维开发网 https://www.qedev.com 2020-11-06 12:03 出处:51CTO 作者:wx59363e625d1d7
docker安装cadvisor报错:W110402:15:33.3241321manager.go:349]CouldnotconfigureasourceforOOMdetection,disablingOOMevents:open/dev/kmsg:nosuchfileordirectory解决方法:1:使用特权模式启动--privileged=true2:dockerrun-d--volu

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

manager.go:349] Could not configure a source for

解决方法:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消