question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Increase fs.inotify.max_user_watches in docker container

See original GitHub issue

Opening certain projects leads to this error. However I am not sure how to work around it within the container. I have tried simply mounting a modified /etc/sysctl.conf from my host but it doesn’t seem to make a difference.

How can we increase this within the container?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

55reactions
wellmsancommented, May 31, 2020

I resolved by running the command on docker host machine:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf

sudo sysctl -p

Success, thanks!

42reactions
ammariocommented, Aug 8, 2019

@perguth Docker mounts /proc as read-only since many of its knobs are global.

If you run that same command on the host, the container will transparently inherit the new setting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Increase fs.inotify.max_user_watches in docker container #628
I have tried simply mounting a modified /etc/sysctl.conf from my host but it doesn't seem to make a difference. How can we increase...
Read more >
Changing fs.inotify.max_user_watches - Build Environment
Since inotify limits cannot be raised in the Circle 2.0 docker, I've gotten successful builds (and deploys with exp publish ) by using...
Read more >
Increase watchers in node docker image - Stack Overflow
You need to increase the fs.inotify.max_user_watchesparameter on the host. For example you can create a configuration file in /etc/sysctl.d.
Read more >
inotify limit in docker container : r/jellyfin - Reddit
Hi, I am running jellyfin on a docker container and get the error ... -How-to-increase-the-inotify-max-user-watches-and-inotify-max-user- ...
Read more >
Add fs.inotify.max_user_watches to supported sysctls
* are allowed to be passed via docker run --sysctl <option>=<value> ... For building larger ReactNative-Apps, it is necessary to set/increase fs ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found