Reputation:
Is there an easy way to track file changes (files will be changed elsewhere) inside the docker container. I used COPY within the Dockerfile to test the functionality but now I need to keep track if the copied files are changing in the background. The changes are made within a different application (Not a docker container). This app fetches data and overwrites those files if something has changed --> Then my container should react to the changes and synchronize it's files.
Is a simple MOUNT enough to establish that?
Regards
Upvotes: 5
Views: 8779
Reputation: 32166
Check
inotify docker image https://github.com/pstauffer/docker-inotify
or
https://hub.docker.com/r/coppit/inotify-command/
or
https://hub.docker.com/r/coppit/inotify-command/~/dockerfile/
Upvotes: 3