Metadata
- Author:: Paolo Mainardi
- Full Title:: Docker on MacOS Is Slow and How to Fix It
- Category:: 🗞️Articles
- URL:: https://www.paolomainardi.com/posts/docker-performance-macos/
- Finished date:: 2023-01-21
Highlights
- rely on things like DevContainers to have a good DX (View Highlight)
- something to share the host filesystem with the VM is required; we can choose between OSXFS (proprietary and deprecated), gRCP FUSE, or VirtioFS. They all come with issues, and VirtioFS is the most promising one (View Highlight)
- Volumes are way faster than bind mounts, but they lack the basics of the development experience (e.g., You and your local editor cannot see the files outside the container (View Highlight)
New highlights added 2023-01-24
- Volumes on Docker Desktop have much higher performance than bind mounts from Mac and Windows hosts. (View Highlight)
- The short answer for now is: Docker Desktop for Mac with VirtioFS, is a good compromise between performance and DX, even if it is slower than Linux; for most cases, it is a negligible difference. (View Highlight)