Skip to content

Instantly share code, notes, and snippets.

@shoaibi
Created August 31, 2016 18:29
Show Gist options
  • Select an option

  • Save shoaibi/b53f65674480a0117404aba384aed9ef to your computer and use it in GitHub Desktop.

Select an option

Save shoaibi/b53f65674480a0117404aba384aed9ef to your computer and use it in GitHub Desktop.
Fixing docker-sync's unison error about "cannot add a watcher: system limit reached"
sudo sysctl -w kern.maxfilesperproc=524288
sudo sysctl -w kern.maxfiles=524288
ulimit -n 524288
docker run --rm --privileged --entrypoint sysctl eugenmayer/unison:unox -w fs.inotify.max_user_watches=524288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment