Closed mike-potter closed 7 years ago
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.
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.
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.
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?