Here is a MWE:
FROM julia:1.9.1
WORKDIR /mwe
CMD ["julia", "--project=.", "-e", "using FileWatching; println(watch_folder(\"in\"))"]
Run the container
docker run -it -v c:\my_folder:/mwe/in mwe
and then drop a file into c:\my_folder. Nothing happens.
If you do
docker run -it -v c:\my_folder:/mwe/in mwe bash
and then navigate to /mwe/in, you will see the file.
So it seems that the events are not being propagated through the mounted volume.
The same works if the docker container is built and run on a linux host.
Also using this function on Windows natively works fine.
This behavior is not unexpected according to the docs here, c.f. the node.js docs here, but maybe a work-around could be provided.