4 ms·
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 i
by jaequery 9y ago
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.
- lilactown 9y agoIt 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.
- NightlyDev 9y agoReading a bunch of small files from a volume is insanely slow from me in windows, so yeah...
- rmrfrmrf 9y agoHadn't heard of Dinghy before. Thanks!
- clintonb 9y agodocker-sync (http://docker-sync.io/ http://docker-sync.io/) is another option that helps resolve filesystem issues on macOS.
- jaequery 9y agoi 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
- AlphaSite 9y agoYou can force docker to mount volumes in a non conistant way. It’s just never clearly documented anywhere.
- cpuguy83 9y agoThis will help you get similar fs performance in d4mac without falling back to NFS: https://docs.docker.com/docker-for-mac/osxfs-caching/#tuning-with-consistent-cached-and-delegated-configurations https://docs.docker.com/docker-for-mac/osxfs-caching/#tuning...
- jaequery 9y agoi 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).
- jtreminio 9y ago:delegated and :cached are ignored on non-MacOS hosts.
- cpuguy83 9y agoThese 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.
- dawnerd 9y agoNewer 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.