How Docker Desktop 4.6’s virtiofs Boosts Mac Development Speed by Up to 98%
Docker Desktop for Mac 4.6 introduces the experimental virtiofs feature, dramatically cutting file‑operation times by up to 98% and slashing build, import, and startup durations for developers using volumes, with simple steps to enable it on supported macOS versions.
Docker Desktop for Mac has released a brand‑new 4.6 version with many updates.
The most notable addition is an experimental feature called virtiofs , which significantly improves file‑sharing performance for macOS users and changes the way files are synchronized between the macOS host and the Docker VM.
According to the official description, these improvements reduce file‑operation time by as much as 98%.
The performance gain is crucial when developers work with frameworks such as Symfony or React, editing source code on the macOS host while the application runs inside a Docker container. Using Docker volumes to share source code requires rapid, reliable synchronization of host file changes to the container filesystem. Modern dependency management can easily introduce 10k–100k files, linearly increasing performance loss; virtiofs alleviates this bottleneck.
Early testers of Docker Desktop 4.6 reported dramatic speedups: a 284 MB MySQL import dropped from 3 minutes 16 seconds to 18 seconds; a large codebase’s composer install time fell 87% from 1 minute 27 seconds to 11 seconds; and starting a monolithic TypeScript app became 80% faster, from 1 minute 30 seconds to 18 seconds.
How to Enable virtiofs
Note: virtiofs is only available for the following macOS versions
macOS 12.2 or later (Apple Silicon)
macOS 12.3 or later (Intel)
To enable virtiofs in Docker Desktop:
Upgrade Docker Desktop to version 4.6 (download link: https://docs.docker.com/desktop/mac/release-notes/)
Navigate to Preferences → Experimental Features
Select the Enable VirtioFS accelerated directory sharing option
Click Apply & Restart
virtiofs is now accessible in Docker Desktop for Mac 4.6 and is available to all users, including Docker Personal (free), Pro, Team, and Enterprise subscribers.
Because virtiofs is still experimental, some issues may arise; containers running virtiofs can fail due to permission errors. Users are encouraged to report any problems to the Docker Mac filesystem performance thread.
For more details, see the official documentation: https://docs.docker.com/desktop/mac/#experimental-features https://www.docker.com/blog/speed-boost-achievement-unlocked-on-docker-desktop-4-6-for-mac/
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
