Docker Community Forums

Share and learn in the Docker community.

Java watcher service from Docker


(Loneshaatpegs) #1

I’m new to docker and have been researching this issue for some time. I have a Java application which uses the Watch Service. I want to have several instances of my app running in different containers that watch a mounted drive. When a file is dropped on the host directory, I want the docker instances to receive the standard OS events.

Is this possible? I can’t be the first developer that needs to implement a “watch” on a mounted volume?!

Thanks.