docker-examples
docker-examples copied to clipboard
Fix Docker mounted volume performance
See the canonical thread, File access in mounted volumes extremely slow, CPU bound, as well as its continuation on GitHub: File access in mounted volumes extremely slow. Basically, performance on the Mac (haven't tested other environments) is abysmal for apps that require reading/writing of many or large files. Here are some interim solutions until osxfs is up to snuff:
I finally found a pretty good solution to this - essentially run union in a docker container and have it sync between the mounted folder and your destination folder. I thought of this a while ago and someone used the idea here:
https://github.com/cweagans/docker-bg-sync
I made good progress on my own implementation of it where it splits everything into separate containers: https://github.com/derimagia/docker-drupal
you could give teracy-dev a try http://blog.teracy.com/2016/12/20/teracy-dev-the-only-truly-universal-productive-development-platform-with-docker-on-macos-linux-and-windows/
Interesting to note the docker4drupal project is using docker-sync.
One more solution https://github.com/docker/for-mac/issues/3677#issuecomment-620040545