-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cadvisor:latest still looks for inotify, which breaks it on RHEL7.6 #2155
Comments
hmmm... We really need to move to fsnotify, but I haven't had any bandwidth. Ill see if I can prioritize it, but can't make any guarantees. |
See #1708 |
is there any update on this? i need to use cadvisor running rhel7.8 but as yet i cant find a working docker run command that doesnt throw an error. many thanks. |
so just an update form my side. i managed to get the container running using this set cfg: docker run even though i have removed the --volume=/sys:/sys:ro \ line , i still seem to be getting container stats, which some people said they didnt get if they removed this line. im not sure why it seems to work for me. |
This worked for me on RHEL7 |
this is my system version:
this is my docker info:
and I use this command worked:
|
Hi,
I know there have been numerous changes related to Cadvisor with CentOS/RHEL but even though cAdvisor is supposed to use fsnotify, I'm still getting a failure when starting latest:
$ docker run --rm --name cadvisor --volume=/:/rootfs:ro --volume=/var/run:/var/run:rw --volume=/var/lib/docker/:/var/lib/docker:ro -v /sys:/sys:ro -p 8080:8080 -eSERVICE_TAGS=prom_monitored google/cadvisor:latest
W0128 21:59:43.148299 1 manager.go:349] Could not configure a source for OOM detection, disabling OOM events: open /dev/kmsg: no such file or directory
W0128 21:59:43.187028 1 container.go:409] Failed to create summary reader for "/system.slice/system-openvpn\\x2dserver.slice/[email protected]": none of the resources are being tracked.
F0128 21:59:43.417116 1 cadvisor.go:172] Failed to start container manager: inotify_add_watch /sys/fs/cgroup/cpuacct,cpu: no such file or directory
Versions 0.27.4 and 0.28.0 work but version 0.28.1 does not.
I cannot really use the
--volume=/sys/fs/cgroup/cpu,cpuacct:/sys/fs/cgroup/cpuacct,cpu
trick because this collides with with the volume mount of '/sys'.I cannot use the
ln -s ..
trick on the host filesystem because it modifies the underlying Linux OS.Is there a way to make Go engine inside of the container work with both RHEL and Ubuntu paths?
The text was updated successfully, but these errors were encountered: