User-guided caching in Docker for Mac

[This post was written by Jeremy Yallop and David Sheets.] Recent Docker releases (17.04 CE Edge onwards) bring significant performance improvements to bind-mounted directories on macOS. (Docker users on the stable channel will see the improvements in the forthcoming 17.06 release.) Commands for bind-mounting directories have new options to selectively enable caching. Containers that perform large numbers of read operations in mounted directories are the main beneficiaries. Here’s an illustration of the improvements in a few tools and applications in common use among Docker for Mac users: go list is 2.5× faster; symfony is 2.7× faster, and rake is 3.5× faster, as illustrated by the following graphs: go list (2.5× speedup) go list ./… in the moby/moby repository symfony (2.7× speedup) curl of the main page of the Symfony demo app rake (3.5× speedup) rake -T in @hirowatari’s benchmark For more details about how Continue reading…