Automation
Docker VMM GA in Docker Desktop 4.101: Bind-Mount Benchmarks, Memory Reclamation, and WSL 2 Trade-Offs
On December 1, 2026, Docker promoted its first-party virtualization layer, Docker VMM, to general availability in Docker Desktop 4.101 across macOS, Windows (x86), and Linux. Built to power both local containers and Docker Sandboxes for AI agents, Docker VMM delivers up to 19.5x faster monorepo searches on Windows, 2.3x faster small-file installs on Mac, and automatic host memory reclamation.
8 min read
Docker VMM GA in Docker Desktop 4.101: Bind-Mount Benchmarks, Memory Reclamation, and WSL 2 Trade-Offs
Executive Summary
- General Availability: On December 1, 2026, Docker promoted Docker VMM—its first-party container-optimized hypervisor—to general availability (GA) in Docker Desktop
4.101across macOS, Windows (x86), and Linux (Docker Blog; daily.dev). - Bind-Mount & Disk Speedups: On Docker's benchmark suite, Docker VMM searches a large monorepo (PostHog) 2.6x faster on Mac and 19.5x faster than WSL 2 (
7.0xfaster than Hyper-V) on Windows drives, while speeding up small-file dependency installs (npm install,composer install) by 2.3x on Mac and 4.6x–6.4x on Windows. - Memory Reclamation + Isolation: Docker VMM allocates memory dynamically for heavy builds or Testcontainers stacks and returns unused RAM to the host once containers exit—combining WSL 2-style memory behavior with Hyper-V-level standalone VM isolation.
- Unified Agent Foundation & WSL Caveats: The same hypervisor underpins Docker Sandboxes for AI coding agents (InfoQ), though Windows teams must explicitly allowlist shared directories and cannot bind-mount
\\wsl.localhost\paths (Docker Docs).
What Changed / Core Mechanism
Until Docker VMM, Docker Desktop relied on third-party virtualization stacks—Apple Virtualization framework on macOS, WSL 2 or Hyper-V on Windows, and QEMU on Linux (prior to 4.98+). Each backend forced engineers into an awkward trade-off: Hyper-V offered strong VM isolation on Windows but locked up its entire RAM allocation indefinitely, while WSL 2 reclaimed memory but shared a single VM across all WSL distributions and struggled when bind-mounting Windows-drive repositories.
Docker VMM replaces that third-party layer with a single, Docker-maintained virtual machine monitor across macOS, Windows (x86), and Linux (KVM). Because Docker controls both the VMM and the container guest stack, file-sharing paths, writable container disks, and memory ballooning are tuned specifically for inner-loop edit-compile-test automation, docker compose stacks, and isolated AI agent sandboxes. That unified runtime also aligns local developer laptops with Docker's broader cloud and agent-automation tooling—including Docker Sandboxes (which can compose reusable kit environments and schedule recurring agent tasks via the sbx CLI) and Docker Offload for persistent cloud Compose workloads (Docker Docs).
flowchart LR
A[Host OS: macOS / Windows x86 / Linux] --> B[Docker VMM: First-Party Hypervisor]
B --> C[Dynamic Memory Balloon: Reclaim on Exit]
B --> D[Optimized Bind-Mount Bridge]
B --> E[Fast Writable Container Layer]
D -->|Explicit File-Sharing Allowlist| F[Compose / Dev Containers: npm, pytest, tsc]
E -->|Testcontainers / Local DBs| G[Postgres, Redis, Kafka, Elasticsearch]
B --> H[Unified Runtime: Docker Desktop 4.101 + Docker Sandboxes]Deployment & Configuration Options
Existing Docker Desktop installations remain on their current backend after upgrading to 4.101 (which also resolves a 4.100.0/4.100.1 regression that hid existing containers and images when switching to the containerd image store), while new installations transition gradually to Docker VMM as the default. Teams can opt in via Settings > General > Virtual Machine Manager > Docker VMM, manage fleets via Docker Settings Management, or pass the installer flag on macOS:
# Unattended macOS deployment selecting Docker VMM at install time
sudo /Volumes/Docker/Docker.app/Contents/MacOS/install --backend=docker-vmm
On Windows, Docker VMM enforces an explicit File sharing allowlist (Settings > Resources > File sharing) that starts empty. Adding a directory updates the running VM dynamically without restarting Docker Desktop—mirroring Hyper-V's explicit sharing boundary while avoiding WSL 2's automatic exposure of every host drive and WSL distribution path.
Reliability, Cost & Performance Analysis
Docker published median-of-repeated-runs benchmarks comparing Docker VMM against Apple Virtualization framework (on a MacBook Pro with M5 Max, 18 CPUs, 16 GiB VM RAM) and against WSL 2 and Hyper-V (on a Dell XPS 15 with Intel Core i9-13900H, 18 CPUs, 16 GiB VM RAM, with project folders on the Windows drive).
Verified File-Sharing & Disk Benchmarks (Docker Desktop 4.101)
| Workload / I/O Pattern | macOS (vs. Apple Virt) | Windows (vs. WSL 2 on Win Drive) | Windows (vs. Hyper-V) | Real-World Automation Impact |
|---|---|---|---|---|
First-time repo search (grep on PostHog) |
2.6x faster | 19.5x faster | 7.0x faster | Editor indexing & AI agent code search |
Second working copy (git worktree add) |
2.2x faster | 6.8x faster | 3.7x faster | Parallel feature branches & agent worktrees |
| Many small files & metadata | 2.3x faster | 4.6x faster | 6.4x faster | npm install, composer install, source unpack |
| Mixed random reads & writes | 1.7x faster | 2.1x faster | 1.2x faster | tsc, jest, pytest, go test loops |
| Bind-mount random reads (large file) | 1.4x faster | 3.2x faster | 4.6x faster | SQLite dev DBs, local search indexes |
| Container disk random reads | 1.4x faster | 2.1x faster | 1.7x faster | Testcontainers (Postgres, MySQL, Redis, Kafka) |
Container disk random writes (fsync off) |
1.5x faster | 1.3x faster | 1.3x faster | Throwaway integration test databases & caches |
Large image build (COPY PostHog tree) |
1.2x faster | 1.2x faster | ~1.0x (parity) | CI/local image assembly |
(Caveat: On Windows, Docker notes that keeping code inside the WSL file system is faster on the WSL 2 backend than sharing from the Windows drive; the Windows comparisons above measure projects stored on the Windows drive where Windows editors and tools access them.)
Memory Behavior & Reliability Notes
- Zero-Idle-Hoarding RAM: Hyper-V reserves its full configured RAM upfront and holds it even when zero containers are running. Docker VMM grows allocation on demand during heavy image builds, integration suites, or local Kubernetes runs, then returns idle memory to the host OS when jobs exit—reducing the long-standing friction of developers manually killing Docker Desktop between tasks to reclaim laptop memory.
- Fleet-Wide Sandbox Alignment: Because Docker Sandboxes (used to isolate autonomous coding agents) run on the exact same VMM across macOS, Windows, and Linux, security and platform teams only evaluate, patch, and govern one virtualization boundary instead of three.
- Stability Fixes & Beta Caveats: The
4.101release notes also address port-burst connection resets on Docker VMM, proxy socket leaks on plain HTTP container requests, and CPU/network spikes from NFS/SMB volume size polling. During the earlier4.94.0beta, some AMD Windows hosts hit silent guest boot hangs (com.docker.sailor.exestalling before Linuxinitwith a 0-bytesailorvsock pool file whenUseLibkrunwas enabled, tracked in desktop-feedback#740), underscoring the importance of testing4.101on a pilot group before rolling out across heterogeneous Windows hardware.
Practical Implementation & Trade-Offs
Backend Selection Matrix for Engineering Teams
| Criterion | Docker VMM (4.101 GA) |
WSL 2 Backend (Windows) | Hyper-V (Windows) / Apple Virt (Mac) |
|---|---|---|---|
| VM Isolation Boundary | Standalone Docker-managed VM | Shared VM across all WSL 2 distros | Standalone VM (Hyper-V / Apple Virt) |
| Host Memory Reclamation | Automatic on container exit | Automatic (shared .wslconfig cap) |
Fixed hold on Hyper-V |
| Windows-Drive Bind Mounts | Fastest (up to 19.5x vs WSL 2) |
Slow across /mnt/c boundary |
Moderate (7x slower repo search) |
| WSL 2 Distro Integration | CLI only; no Docker socket in WSL; no \\wsl.localhost\ mounts |
Full daemon socket & native WSL paths | CLI only |
| Directory Sharing | Explicit allowlist (File sharing UI) |
Auto-mounts Windows & WSL paths | Explicit allowlist |
Migration Gotchas & Rollout Checklist
- Check WSL 2 Dependencies Before Switching: If your automation scripts or dev containers live inside
\\wsl.localhost\Ubuntu\...or rely on full WSL 2 daemon socket integration inside a WSL distro, stay on the WSL 2 backend. With Docker VMM,dockeranddocker composeCLI commands work from WSL 2, but there is no Docker socket inside the distro and bind mounts must reside on Windows drives. - Pre-Configure File-Sharing Allowlists: Because Docker VMM starts with an empty File sharing list, pre-populate your standard workspace roots (such as
C:\Users\<user>\src) via Settings Management before pushing4.101to developers. - Budget Dual-VM RAM if Running WSL 2 Simultaneously: If engineers run both Docker VMM and a separate WSL 2 Linux distro, two Linux VMs run concurrently—Docker VMM obeys Settings > Resources > Advanced (where at least
4 GiBis recommended), while WSL obeys.wslconfig. - Upgrade Past
4.100.xCleanly: Teams currently on4.100.0or4.100.1should upgrade directly to4.101to resolve the hidden-containercontainerdimage-store migration quirk. - Verify Linux KVM Prerequisites: On Linux workstations (
4.98+), Docker VMM requires active KVM access rather than QEMU; confirm/dev/kvmpermissions are configured for non-root developer accounts before switching backend settings.
Frequently Asked Questions
Does Docker Desktop 4.101 automatically switch existing users to Docker VMM?
No. Docker states that existing Docker Desktop installations remain on their current backend after updating to 4.101, while new installations will gradually default to Docker VMM. You can switch manually anytime under Settings > General > Virtual Machine Manager.
Can I still use WSL 2 distributions if I enable Docker VMM on Windows?
Yes, with limits. The docker and docker compose CLI commands work inside your WSL 2 distributions, but there is no Docker socket inside the WSL distro, and Docker VMM cannot bind-mount files stored under \\wsl.localhost\—projects must live on a Windows drive and be listed in Settings > Resources > File sharing.
How much faster is Docker VMM for Testcontainers and Compose test suites?
On Docker's benchmarks, writable container-layer disk random reads (used by throwaway Postgres, MySQL, Redis, and Kafka containers) are 1.4x faster on Mac and 2.1x faster than WSL 2 (1.7x vs. Hyper-V) on Windows, while mixed random read/write bind-mount workloads (pytest, jest, tsc, go test) run 1.7x faster on Mac and 2.1x faster than WSL 2.
Does Docker VMM return memory to Windows and macOS when containers stop?
Yes. Unlike Hyper-V—which reserves its full memory allocation upfront and holds it—Docker VMM grows memory dynamically as builds or test stacks demand it and automatically returns unused RAM to the host once containers finish.
Why does Docker VMM matter for AI coding agents?
Docker uses the exact same underlying VMM technology to power Docker Sandboxes across macOS, Windows, and Linux, giving organizations a single isolated virtualization boundary for both local Compose workflows and autonomous AI agent execution.
Sources
- Docker Blog — Announcing Docker VMM GA (Published December 1, 2026): https://www.docker.com/blog/announcing-docker-vmm-ga/
- Docker Docs — Virtual Machine Manager (Docker VMM) (Updated November 30, 2026): https://docs.docker.com/desktop/features/vmm/
- Docker Docs — Docker Desktop release notes (
4.101) (Accessed December 1, 2026): https://docs.docker.com/desktop/release-notes/ - daily.dev — Docker VMM GA: Faster Docker Desktop, Less Memory (Published December 1, 2026): https://daily.dev/posts/docker-vmm-ga-faster-docker-desktop-less-memory--tfygucpmw
- InfoQ — Docker Launches Fully Rebuilt Virtualization Layer to Boost Container Performance (Published August 19, 2026): https://www.infoq.com/news/2026/08/docker-vmm-layer/