Skip to content
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

inotify not working in docker #143

Closed
kevinkk525 opened this issue Jan 8, 2021 · 2 comments
Closed

inotify not working in docker #143

kevinkk525 opened this issue Jan 8, 2021 · 2 comments

Comments

@kevinkk525
Copy link

I built grok_exporter docker-container with the dockerfile from #62 and in the config file "readall=false" and no poll interval but grok_exporter doesn't pick up any line changes.
host system is ubuntu 20.04.

Running the binary on the host system works fine with inotify, just the docker doesn't. Maybe someone can help me with that issue?

@kevinkk525
Copy link
Author

ok this one I solved, inotify doesn't work if you bind the source logfile into the container. If you just bind/mount the directory of the logfile then it works. Sorry.

@fstab
Copy link
Owner

fstab commented Jan 8, 2021

Thanks for commenting the solution after you found it. This will certainly be appreciated by others having the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants