It depends on the error you are seeing, but docker without a host volume mount uses overlayfs for the filesystem which deletes the data when the container exits, and that filesystem does not support watching and there is nothing you can do as far as I know.
Thank you. It turns out to solve this issue, you simply need to apply the fix in the FAQ to the host system, since docker does not virtualize the kernel.
I did this and it’s now working without the warning.