@mworrell Nope. I never tried Docker on macOS, only Linux.
Zotonic’s fswatcher is also based on inotifywait just like fs. No doubt it works, but pretty sure it gonna drop events under load (i.e many files created/modifed/deleted at once) on Docker.
My config:
$ uname -a
Linux xxxxx.default 5.15.0-119-generic #129-Ubuntu SMP Fri Aug 2 19:25:20 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ docker --version
Docker version 27.2.0, build 3ab4256
$ erl
Erlang/OTP 27 [erts-15.0.1] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns]
Guess a kind of fallback/workaround is needed, where after a quick succession of many events a full directory scan is done to find any changes. Which is a pain… not scanning is exactly the reason to use inotify in the first place.