![rw-book-cover](https://www.paolomainardi.com/images/posts/3-docker/dalle-container-apple-flag.webp) ## Metadata - Author:: [[paolo-mainardi|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](https://code.visualstudio.com/docs/devcontainers/containers) to have a good DX ([View Highlight](https://read.readwise.io/read/01gq9v5qcbf8n291wx0qkp3ers)) - **something to share the host filesystem with the VM is required**; we can choose between ***OSXFS*** *(proprietary and deprecated),* [***gRCP FUSE***](https://www.docker.com/blog/speed-boost-achievement-unlocked-on-docker-desktop-4-6-for-mac/)*, or* ***VirtioFS***. They all come with issues, and [**VirtioFS is the most promising one**](https://www.jeffgeerling.com/blog/2022/new-docker-mac-virtiofs-file-sync-4x-faster) ([View Highlight](https://read.readwise.io/read/01gq9v6p5jk7hsfkp8zzfk7xxp)) - 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](https://read.readwise.io/read/01gq9twgbjza790964ha1a3nsp)) ## New highlights added [[2023-01-24]] - Volumes on Docker Desktop have **much higher performance** **than bind mounts** from **Mac** and **Windows hosts**. ([View Highlight](https://read.readwise.io/read/01gqephpe8y2s6egy4n3wnde3t)) - 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](https://read.readwise.io/read/01gqepknydhe6rb5dq9fswkm2c))