Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

Only syncs once? #8

Closed
mike-potter opened this issue May 3, 2017 · 3 comments
Closed

Only syncs once? #8

mike-potter opened this issue May 3, 2017 · 3 comments

Comments

@mike-potter
Copy link

Gave this a try using the example configuration. It eventually synced everything from /source into /var/www. However, after the sync was done, I edited a file on my local Mac (that is in the /source mount) and it was never synced to /var/www.

I ssh'd to the sync container and verified that the /source/README.txt file was changed and the /var/www/README.txt was still the original.

Is there a polling interval to set here or is there an issue with the file watching?

Maybe the issue is that the directory on the Mac is mounted into the docker-machine using docker-machine-nfs? Which maybe doesn't generate the events needed here?

@mike-potter
Copy link
Author

The problem might be that we are using VirtualBox. Even when I remove the NFS and try to use the native file system it appears that vboxfs doesn't fire the events.

@cweagans
Copy link
Owner

Sounds like an issue with the filesystem events. I doubt this will work in docker-machine. It was built to work around osxfs slowness in Docker for Mac. Conveniently, osxfs propagates filesystem events into their VM, which allows this container to work properly.

@mike-potter
Copy link
Author

Yep, the issue is with docker-machine. You might make it clearer on the project page that this repo only works for Docker for Mac.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants