On Windows, the container is only synced once when it starts
patriceckhart opened this issue · 3 comments
On Windows the sync works. however, it only works once. If a change is made to the host, nothing will be synced. If you restart the container, the changes are synced. It works fine on Mac.
Can you help?
I would not recommend using this on Windows. If you run Docker in WSL, plain bind mounts will be much faster and more reliable than this method. I would also recommend looking into Mutagen on Mac environments. It syncs faster than Unison and is also more reliable with the downside of having to do some one-time setup on the host. If you're using ddev for your local environment (which I highly recommend), this functionality is built in and you just have to turn it on (no host setup required): https://ddev.readthedocs.io/en/latest/users/performance/#using-mutagen
(just to clarify, I would not recommend using this repo in general at this point)
Thank you. I don't use ddev. I have an lightweight custom image in development and also in production. But I'll try it with mutagen.