Docker is widely used for developing and testing applications in isolated container environments. However, developers sometimes experience slow file operations when working with Docker Desktop, particularly when source code is stored on the host machine and accessed from inside a container.
For example, running npm install, restoring NuGet packages, compiling a large .NET solution, executing automated tests, or starting a database can involve thousands of file operations. When these operations cross the boundary between the host operating system and the Linux virtual machine, file-sharing overhead can affect development performance.
Docker VMM addresses this problem by introducing a container-optimized virtualization layer for Docker Desktop. It improves file access between the host and containers, improves container storage performance, reduces startup time, and returns unused memory to the host.
Docker announced the general availability of Docker VMM on December 1, 2026, with Docker Desktop 4.101.
In this article, we will understand how Docker VMM works, why file I/O becomes a bottleneck, how to enable Docker VMM, and how to benchmark file operations using practical Docker commands. We will also compare bind mounts with container storage and explore how developers can improve their daily development workflow.
1. What Is Docker VMM?
Docker VMM is a virtual machine manager designed specifically for running container workloads through Docker Desktop.
Docker Desktop runs Linux containers inside a Linux virtual machine on macOS and Windows. The virtual machine manager controls how that environment runs and communicates with the host operating system.
Previously, Docker Desktop relied on different virtualization technologies depending on the platform and configuration. Docker VMM introduces Docker's own virtualization implementation, allowing Docker to optimize the complete virtualization layer for container workloads.
Its main objectives are:
- Improve file I/O between the host and containers.
- Reduce container and Docker Engine startup time.
- Improve disk performance inside containers.
- Return unused memory to the host.
- Provide a consistent virtualization approach across supported platforms.
- Maintain an isolated Linux virtual machine.
Docker VMM became generally available with Docker Desktop 4.101.
It is designed for developers who regularly build images, run databases, execute automated tests, work with large repositories, and use containerized development environments.
What Does a Virtual Machine Manager Do?
A virtual machine manager creates and manages the virtual machine that runs the Linux environment required by Docker Desktop.
Consider a developer using a Mac with Apple silicon.
The host operating system is macOS, but most Docker containers run Linux. Docker Desktop therefore needs a Linux virtual machine.
The architecture looks like this:
Developer Machine
macOS / Windows / Linux
|
v
Docker Desktop
|
v
Docker VMM
|
v
Linux Virtual
Machine
|
v
Docker Engine
|
+--------+--------+
| | |
v v v
API App Database Redis
Container Container Container
Docker VMM manages the virtual machine underneath Docker Engine.
It also handles important operations such as memory management, storage access, and communication between the host and the container environment.
The goal is to reduce the overhead developers experience when running container workloads.
2. Why Does File I/O Become a Docker Performance Bottleneck?
File I/O means reading, writing, creating, modifying, and deleting files.
A modern application performs these operations continuously.
For example, a .NET application may need to:
- Restore NuGet packages.
- Read source files.
- Generate intermediate build files.
- Write compiled assemblies.
- Create temporary files.
- Load configuration files.
- Read application logs.
Similarly, a Node.js application may create thousands of files inside node_modules when installing dependencies.
The problem becomes more noticeable when the project directory is stored on the host operating system but accessed from inside a container.
Understanding Bind Mounts
A bind mount connects a directory on the host machine to a directory inside a container.
For example:
docker run --rm \
-v "$(pwd):/app" \
-w /app \
node:22 \
npm install
In this example:
- The current host directory is mounted at /app.
- The container accesses the same project files through that mount.
- npm install creates and modifies dependency files inside the mounted directory.
Although the application runs inside Linux, the source files remain on the host machine.
Docker Desktop must coordinate file access between the host and the Linux virtual machine.
This additional communication can affect workloads that perform many small file operations.
How File I/O Works With a Bind Mount
Host File System
Project Directory
|
v
File Sharing Layer
|
v
Linux Virtual
Machine
|
v
Docker Engine
|
v
Container
|
v
Application Reads
and Writes Files
Every operation that crosses the host-container boundary may involve additional processing.
Reading a single large file is often less sensitive to this overhead than creating, checking, and deleting thousands of small files.
That is why dependency installation, source-code searches, and development builds can be affected.
3. How Docker VMM Improves File I/O Performance
Docker VMM focuses on three important areas: shared-folder access, container storage, and memory management.
Faster Host-to-Container File Access
Docker VMM improves access to project directories shared between the host and containers.
This is particularly useful for:
- npm install.
- NuGet package operations.
- Git operations.
- Source-code searches.
- TypeScript compilation.
- Automated testing.
- Development containers.
For example, consider a large repository containing thousands of source files.
When a developer runs a search command, the container needs to inspect many files.
Reducing file-sharing overhead can make that operation faster.
Faster Container Storage
Every container also has its own writable filesystem layer.
This layer stores data created by processes running inside the container.
Examples include:
- Database files.
- Application caches.
- Temporary files.
- Logs.
- Build artifacts.
- Image layers.
Docker VMM improves performance for certain operations against this storage.
This matters when running PostgreSQL, Redis, search services, or integration-test environments inside containers.
Better Memory Management
Docker VMM can return memory to the host after containers finish using it.
For example, suppose a developer runs a large integration-test environment containing multiple databases and application services.
The containers may temporarily need a significant amount of memory.
After the test environment stops, Docker VMM can return unused memory to the host.
This helps make memory available to other applications, such as Visual Studio Code, browsers, Android Studio, and other development tools.
Reduced Startup Time
Docker VMM also reduces Docker Engine and container startup times.
This can improve workflows where developers repeatedly start and stop containers during testing.
However, the actual improvement depends on the application, container image, storage configuration, and host hardware.
4. Docker VMM Performance Improvements
Docker published performance comparisons when announcing Docker VMM general availability.
The benchmarks included a MacBook Pro with an M5 Max processor and a Windows laptop with an Intel Core i9-13900H.
Both systems used a virtual machine configuration with 18 CPUs and 16 GiB of memory.
The results below are Docker-reported comparisons, not guarantees for every machine.
Shared Folder Performance
| Operation | macOS improvement | Windows vs. WSL 2 | Windows vs. Hyper-V |
|---|
| First large codebase search | 2.6x | 19.5x | 7.0x |
| Git worktree creation | 2.2x | 6.8x | 3.7x |
| Small-file operations | 2.3x | 4.6x | 6.4x |
| Mixed random reads and writes | 1.7x | 2.1x | 1.2x |
| Random reads from large files | 1.4x | 3.2x | 4.6x |
Container Storage Performance
| Operation | macOS improvement | Windows vs. WSL 2 | Windows vs. Hyper-V |
|---|
| Random reads from large files | 1.4x | 2.1x | 1.7x |
| Random writes to large files | 1.5x | 1.3x | 1.3x |
| Building an image with a large COPY | 1.2x | 1.2x | Approximately the same |
These results demonstrate that the largest improvements are associated with particular file-access patterns.
For example, a large codebase search and operations involving many small files benefit more than every possible Docker workload.
It is important to distinguish between shared-folder performance and container storage performance. They involve different filesystem paths and should be benchmarked separately.
5. Docker VMM Requirements
Before enabling Docker VMM, verify that your development machine supports it.
The requirements depend on the operating system.
| Platform | Requirement |
|---|
| macOS | Apple silicon |
| Windows | x86-64 processor |
| Linux | Docker Desktop 4.98 or later with KVM access |
| Windows virtualization | Windows Hypervisor Platform and Virtual Machine Platform |
| Linux VM memory | At least 4 GB allocated |
For macOS, Docker VMM requires Apple silicon.
For Windows, Docker VMM currently supports x86-64 rather than Arm-based Windows systems.
For Linux, Docker VMM is available with Docker Desktop 4.98 or later and requires access to KVM.
Docker announced general availability across supported platforms with Docker Desktop 4.101.
The minimum version for the feature and the version in which Docker announced general availability are different milestones.
6. Enable Docker VMM in Docker Desktop
After confirming compatibility, enable Docker VMM from Docker Desktop settings.
Step 1: Update Docker Desktop
Install Docker Desktop 4.101 or a later compatible release.
Check the installed version:
docker version
You can also check the Docker Desktop version from the application's About section.
Step 2: Open Docker Desktop Settings
Start Docker Desktop.
Navigate to:
Settings
|
v
General
|
v
Virtual Machine Manager
Step 3: Select Docker VMM
Choose Docker VMM from the available virtualization options.
Step 4: Apply the Changes
Select Apply & restart.
Docker Desktop restarts using the selected virtualization backend.
Step 5: Verify Docker
After restarting, run:
docker info
Also verify that containers are working:
docker run --rm hello-world
The command downloads and runs the Hello World image if it is not already available locally.
Docker VMM requires at least 4 GB of memory allocated to the Linux virtual machine. Docker Desktop prompts users to increase the allocation if the current value is lower.
7. Understand File Sharing With Docker VMM
File sharing determines how a container accesses files stored on the host machine.
Docker Desktop supports different file-sharing implementations depending on the selected virtualization backend.
With Docker VMM on macOS, VirtioFS is the supported file-sharing implementation.
What Is VirtioFS?
VirtioFS is a filesystem-sharing mechanism designed to provide access to host files from a virtual machine.
It uses the Virtio framework to communicate between the host and guest operating systems.
In Docker Desktop, VirtioFS allows Linux containers to access files stored on the macOS host.
For example:
services:
api:
image: node:22
working_dir: /app
volumes:
- .:/app
command: npm run dev
The current project directory is mounted into the container at /app.
When the developer modifies a source file, the container can access the updated file through the shared filesystem.
This supports common development workflows such as hot reload, testing, and compilation.
Why File-Sharing Configuration Matters
Different file-sharing implementations have different performance characteristics.
A benchmark using VirtioFS should not be directly compared with one using gRPC-FUSE without documenting the difference.
Docker's settings documentation reports that VirtioFS has reduced filesystem operation time by up to 98% compared with the older osxfs implementation in applicable tests.
That figure is specific to the comparison described by Docker. It should not be interpreted as a universal improvement over every other file-sharing backend.
8. Benchmark File I/O Performance With Docker
The most useful way to understand Docker VMM is to compare it with another supported backend using the same workload.
A reliable benchmark should use the same:
- Host machine.
- Docker Desktop version.
- Docker Engine version.
- CPU allocation.
- Memory allocation.
- Project directory.
- Container image.
- Test workload.
- Storage configuration.
Do not compare results collected from different computers or different Docker resource allocations and attribute the entire difference to Docker VMM.
Record the Environment
Before starting the benchmark, collect the current configuration.
Run:
docker version
docker info
uname -a
Record the following information:
| Item | Example |
|---|
| Docker Desktop version | 4.101 |
| Host operating system | macOS |
| Processor | Apple silicon |
| Virtualization backend | Docker VMM |
| File-sharing implementation | VirtioFS |
| VM CPU allocation | 8 CPUs |
| VM memory allocation | 8 GB |
| Container architecture | ARM64 |
These details help explain differences between benchmark runs.
Prepare a Test Directory
Create a benchmark directory:
mkdir -p ~/docker-vmm-test
cd ~/docker-vmm-test
Create a test file:
dd if=/dev/zero \
of=benchmark.dat \
bs=1m \
count=512
This creates a file of approximately 512 MiB.
The file will be used to test basic file access from a container.
Benchmark Sequential File Access
Run:
time docker run --rm \
-v "$(pwd):/data" \
-w /data \
alpine:3.22 \
sh -c "cat benchmark.dat > /dev/null"
The command reads the file through the bind mount.
The time command reports the elapsed execution time.
Repeat the test several times and record the results.
The first execution may be affected by image downloads and filesystem caching, so prepare the image before collecting measurements.
For example:
docker pull alpine:3.22
Benchmark Small-File Operations
Applications often work with thousands of small files rather than a few large files.
Create a test directory:
mkdir -p small-files
Run:
time docker run --rm \
-v "$(pwd)/small-files:/data" \
alpine:3.22 \
sh -c '
for i in $(seq 1 10000); do
echo "Docker VMM test" > /data/file-$i.txt
done
find /data -type f | wc -l
'
This command creates 10,000 small files through a bind mount.
It provides a simple way to evaluate file creation and directory traversal performance.
For more reliable results, remove the generated files between runs and repeat the test.
Benchmark File Metadata Operations
File metadata operations include checking whether files exist, reading file information, and listing directory contents.
These operations are common during package installation and source-code indexing.
Run:
time docker run --rm \
-v "$(pwd)/small-files:/data" \
alpine:3.22 \
sh -c '
find /data -type f -exec stat {} \; > /dev/null
'
This measures the time required to inspect file metadata for the test directory.
Compare the elapsed time across virtualization backends.
9. Benchmark a Real Development Workflow
Synthetic tests are useful, but they do not always represent actual developer activity.
A more practical approach is to benchmark a real application build.
Consider a Node.js application.
Create a Dockerfile:
FROM node:22
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
CMD ["npm", "start"]
This image performs several file-intensive operations:
- Copies the project into an image layer.
- Installs application dependencies.
- Copies the remaining source files.
- Compiles the application.
Build the image:
time docker build \
-t node-performance-test \
.
Record the total build time.
Repeat the same build after switching to another virtualization backend.
Use the same Dockerfile, project directory, image cache conditions, and resource allocation.
For a clean comparison, distinguish between cold builds and cached builds.
A cached build may skip package installation or compilation, which can make the results misleading.
Benchmark .NET Package Restore and Build
The same approach can be used for .NET applications.
Consider the following Dockerfile:
FROM mcr.microsoft.com/dotnet/sdk:10.0
WORKDIR /app
COPY *.sln ./
COPY MyApplication/*.csproj ./MyApplication/
RUN dotnet restore
COPY . .
RUN dotnet publish \
MyApplication/MyApplication.csproj \
-c Release \
-o /publish
Build the image:
time docker build \
-t dotnet-performance-test \
.
This workflow includes project copying, NuGet package restoration, compilation, and publishing.
For larger .NET solutions, these operations can involve many files and substantial disk activity.
Benchmarking the complete build gives a more useful picture than measuring a single file operation.
10. Improve Docker Compose Development Workflows
Docker Compose is commonly used to run applications with multiple dependent services.
For example, a development environment may contain:
- ASP.NET Core API.
- PostgreSQL database.
- Redis cache.
- Frontend application.
A Compose configuration might look like this:
services:
api:
build:
context: ./api
ports:
- "8080:8080"
volumes:
- ./api:/app
database:
image: postgres:17
environment:
POSTGRES_DB: appdb
POSTGRES_USER: appuser
POSTGRES_PASSWORD: development-password
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
image: redis:7
ports:
- "6379:6379"
volumes:
postgres-data:
This example defines three services.
The API uses a bind mount to access the project directory.
PostgreSQL stores its data in a named volume.
Redis runs as a separate service.
Docker VMM can improve performance in workflows involving both shared source files and container storage.
Start the Environment
Run:
docker compose up -d --build
Check running containers:
docker compose ps
View application logs:
docker compose logs -f
Stop the environment:
docker compose down
For a performance comparison, measure how long the environment takes to start and how quickly the application becomes ready.
Do not measure only the time required for the containers to start. Database initialization and application readiness can take additional time.
Also avoid storing production credentials in a development Compose file.
11. Understand Bind Mounts, Named Volumes, and Container Storage
Docker provides different storage mechanisms.
Choosing the right one is important for both performance and data management.
| Storage type | Description | Common use |
|---|
| Bind mount | Connects a host directory to a container | Source code and local configuration |
| Named volume | Managed by Docker | Database and persistent application data |
| Container writable layer | Stores changes made inside a container | Temporary files and container-specific data |
| tmpfs mount | Stores data in memory | Temporary sensitive or high-speed data |
Bind Mount
Example:
volumes:
- ./src:/app/src
The container accesses files from the host.
Use bind mounts when developers need to edit source files outside the container while running the application inside it.
Named Volume
Example:
volumes:
- postgres-data:/var/lib/postgresql/data
The volume is managed by Docker.
It is useful for storing database data independently of the container lifecycle.
Container Writable Layer
Every container has a writable layer above its image layers.
Data written here belongs to that container.
It is suitable for temporary state, but important data should be stored in persistent volumes or external storage.
tmpfs Mount
Example:
docker run --rm \
--tmpfs /tmp:rw,size=64m \
alpine:3.22 \
sh -c "echo test > /tmp/example.txt"
The temporary filesystem stores data in memory.
It can be useful for temporary operations, but the data disappears when the container stops.
Do not use tmpfs for data that must survive a restart.
12. Troubleshoot Docker VMM File-Sharing Issues
Although Docker VMM improves file I/O, developers may encounter configuration and compatibility problems.
Directory Is Not Shared
A container may fail to access a host directory that has not been configured for sharing.
For example:
not shared from the host
Open Docker Desktop settings:
Settings
|
v
Resources
|
v
File Sharing
Add the required directory and restart Docker Desktop if necessary.
On macOS and Linux, directories outside the default shared locations may need to be added manually.
Slow AMD64 Container Emulation on Apple Silicon
Docker VMM on macOS does not currently support Rosetta.
Therefore, emulating AMD64 containers on Apple silicon can be slow.
Whenever possible, use native ARM64 images.
For example:
docker pull --platform linux/arm64 alpine:3.22
You can also inspect the image architecture:
docker image inspect alpine:3.22 \
--format '{{.Architecture}}'
If your application depends on AMD64-only binaries, test compatibility before switching your entire development environment to Docker VMM.
Database Compatibility Problems
Docker documents that certain databases, including MongoDB and Cassandra, may fail when using VirtioFS with Docker VMM on macOS.
If a database fails to start or reports filesystem-related errors:
- Check the Docker Desktop release notes.
- Review the current Docker VMM known issues.
- Verify the database image and version.
- Check whether the problem is related to the shared filesystem.
- Test with another supported virtualization backend if necessary.
Do not assume every database will work identically across all virtualization backends.
Container Cannot Access a Mounted Directory
Check the volume configuration:
docker inspect CONTAINER_NAME
Look for the Mounts section.
It displays the source directory on the host and the destination path inside the container.
Also verify file permissions and the Docker Desktop file-sharing configuration.
Docker Desktop Does Not Start After Switching
Switching virtualization backends may require a complete restart.
If Docker Desktop fails to start:
- Restart Docker Desktop.
- Verify virtualization support in the operating system.
- Check the Docker Desktop diagnostic logs.
- Confirm that the selected backend is supported by the host.
- Return to the previous virtualization backend if necessary.
13. Benchmarking Best Practices
A useful performance benchmark should be repeatable and should measure the same workload under controlled conditions.
Follow these practices when comparing Docker VMM with another backend.
Use the Same Machine
Run both tests on the same computer.
Different processors, memory configurations, storage devices, and operating-system versions can affect results.
Keep Resource Allocation Consistent
Use the same number of CPUs and the same memory allocation.
A benchmark with 16 GB of memory should not be compared with another benchmark using 8 GB without documenting the difference.
Separate Cold and Warm Runs
A cold run may include image downloads, cache creation, and initial filesystem operations.
A warm run may benefit from existing caches.
Measure them separately.
Run Multiple Iterations
Repeat each test at least three times.
Record the results and compare the median rather than relying on a single execution.
Avoid Background Workloads
Close unnecessary builds, IDE indexing, backups, and other resource-intensive applications.
Connect laptops to power to avoid power-management differences.
Test Real Application Workloads
Include:
- Package installation.
- Source-code searches.
- Compilation.
- Automated tests.
- Database operations.
- Docker image builds.
- Compose startup.
A single synthetic test cannot represent every application workflow.
Measure More Than Execution Time
Where relevant, collect:
- CPU utilization.
- Memory usage.
- Disk throughput.
- File operations per second.
- Container startup time.
- Application readiness time.
- Build duration.
This helps identify whether the improvement comes from file access, disk performance, or another part of the system.
14. Docker VMM Advantages and Limitations
Advantages
- Better file I/O: Improves host-to-container file access for development workloads involving many files.
- Faster development builds: Can reduce the time required for dependency installation, compilation, and image building.
- Improved container storage: Provides better performance for selected read and write operations inside containers.
- Memory reclamation: Returns unused memory to the host after container workloads finish.
- Faster startup: Reduces Docker Engine and container startup times.
- Managed virtualization: Docker controls the virtualization layer and can optimize it for container workloads.
- Improved Windows isolation: Provides a standalone VM boundary while improving selected workloads compared with existing backends.
Limitations
- Platform requirements: Docker VMM supports specific processor architectures and operating-system configurations.
- AMD64 emulation: Rosetta is not currently supported by Docker VMM on macOS, making AMD64 emulation slower on Apple silicon.
- Database compatibility: Certain databases, including MongoDB and Cassandra, may encounter issues with VirtioFS on macOS.
- Backend migration: Images, containers, and volumes do not automatically move between virtualization backends.
- Workload dependency: Performance improvements vary according to file-access patterns and application behavior.
- Configuration requirements: Host directories may need to be added to Docker Desktop file-sharing settings.
15. When Should Developers Use Docker VMM?
Docker VMM is particularly useful when a development workflow frequently accesses files shared between the host and containers.
Consider the following scenarios:
| Development scenario | Potential benefit |
|---|
| Large Node.js projects | Faster small-file operations and dependency installation |
| Large .NET solutions | Improved file access during restore and build workflows |
| Git monorepositories | Faster searches and repository operations |
| Docker Compose environments | Improved file and container storage operations |
| Integration testing | Faster operations involving temporary databases |
| Local Kubernetes | Improved resource management and selected storage operations |
| Database development | Better performance for supported container storage workloads |
However, Docker VMM is not automatically the best option for every machine.
Developers using AMD64-only containers on Apple silicon, or databases with known VirtioFS compatibility issues, should evaluate the alternatives before switching.
The best approach is to benchmark the actual development workflow and select the backend that provides the most reliable performance.
Conclusion
Docker VMM introduces a container-focused virtualization layer designed to improve Docker Desktop performance.
Its improvements are particularly relevant to file-intensive development workflows, including package installation, source-code searches, compilation, automated testing, and database-backed integration tests.
By improving host-to-container file access, optimizing container storage, reducing startup overhead, and returning unused memory to the host, Docker VMM can make everyday development work more efficient.
However, performance depends on the host platform, filesystem configuration, container architecture, and workload. Developers should also consider current limitations, including AMD64 emulation on Apple silicon and certain database compatibility issues.
Start by enabling Docker VMM, recording the existing environment, and benchmarking representative workloads. Compare cold and warm runs, measure the actual application build process, and validate database and container compatibility before adopting it across a development team.
The most effective Docker configuration is not necessarily the one with the best synthetic benchmark. It is the one that makes your real development, testing, and deployment workflow faster and more reliable.
Join the conversation! Your thoughts help the community grow.