Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

on osx, i know for a fact Docker for OSX is pretty darn slow due to its way they handle filesystem.

but using Dinghy greatly helped sped everything up due to it using nfs. just in case anyone wanted to know.



It can't be worse than the way they handle the filesystem on Windows. I can't even get events (e.g. watching for changes) to work on volumes.


Reading a bunch of small files from a volume is insanely slow from me in windows, so yeah...


This will help you get similar fs performance in d4mac without falling back to NFS: https://docs.docker.com/docker-for-mac/osxfs-caching/#tuning...


i never tried this but i think it's similar to docker-sync, where you still have to modify your docker compose files. it's not good for people who want a single consistent docker-compose file that would work across varying distributions (ie; opensource project).


These options are part of the Docker API and the underlying engine implements it as needed. On Linux hosts there is nothing to tweak as bind mounts offer full consistency without compromising performance. In Docker for Mac it tweaks the consistency settings for mounts that cross the VM barrier with osxfs.

So itnisnsafe to define these in any comoose file no matter where it runs, just need to make sure that the app in the container can actually deal with the consistency level applied to the particular mount.


:delegated and :cached are ignored on non-MacOS hosts.


Newer versions of docker have been much better, but now it just eats up a ton of ram. The ram setting in prefs doesn’t seem to actually limit it at all.


You can force docker to mount volumes in a non conistant way. It’s just never clearly documented anywhere.


docker-sync (http://docker-sync.io/) is another option that helps resolve filesystem issues on macOS.


i had high hopes for this when i first heard about it but it's no good for me as it requires you to modify your docker-compose file to suit it's needs


you can layer compose configs and put the sync stuff in its own file: `docker-compose up -f docker-compose.yml -f docker-compose-sync.yml`


or you can just go with dinghy and be done with :p


Hadn't heard of Dinghy before. Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: