Skip to content

FileWatching.watch_folder does not track changes of a Windows folder mounted inside a Docker container #50249

@simsurace

Description

@simsurace

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions