docker-examples icon indicating copy to clipboard operation
docker-examples copied to clipboard

Fix Docker mounted volume performance

Open geerlingguy opened this issue 9 years ago • 4 comments
trafficstars

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:

geerlingguy avatar Sep 24 '16 03:09 geerlingguy

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

derimagia avatar Oct 08 '16 16:10 derimagia

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/

hoatle avatar Dec 20 '16 16:12 hoatle

Interesting to note the docker4drupal project is using docker-sync.

geerlingguy avatar Dec 20 '16 19:12 geerlingguy

One more solution https://github.com/docker/for-mac/issues/3677#issuecomment-620040545

mahnunchik avatar Feb 20 '21 10:02 mahnunchik