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.

By 0xScorPionSon

8 min read

Docker VMM GA in Docker Desktop 4.101: Bind-Mount Benchmarks, Memory Reclamation, and WSL 2 Trade-Offs

Docker VMM GA architecture in Docker Desktop 4.101 showing Bind Mounts, Sailor VMM, Container Disk, and Memory Reclaim

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.101 across 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.0x faster 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

  1. 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.
  2. 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.
  3. Stability Fixes & Beta Caveats: The 4.101 release 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 earlier 4.94.0 beta, some AMD Windows hosts hit silent guest boot hangs (com.docker.sailor.exe stalling before Linux init with a 0-byte sailor vsock pool file when UseLibkrun was enabled, tracked in desktop-feedback#740), underscoring the importance of testing 4.101 on 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

  1. 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, docker and docker compose CLI commands work from WSL 2, but there is no Docker socket inside the distro and bind mounts must reside on Windows drives.
  2. 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 pushing 4.101 to developers.
  3. 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 GiB is recommended), while WSL obeys .wslconfig.
  4. Upgrade Past 4.100.x Cleanly: Teams currently on 4.100.0 or 4.100.1 should upgrade directly to 4.101 to resolve the hidden-container containerd image-store migration quirk.
  5. Verify Linux KVM Prerequisites: On Linux workstations (4.98+), Docker VMM requires active KVM access rather than QEMU; confirm /dev/kvm permissions 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

  1. Docker Blog — Announcing Docker VMM GA (Published December 1, 2026): https://www.docker.com/blog/announcing-docker-vmm-ga/
  2. Docker Docs — Virtual Machine Manager (Docker VMM) (Updated November 30, 2026): https://docs.docker.com/desktop/features/vmm/
  3. Docker Docs — Docker Desktop release notes (4.101) (Accessed December 1, 2026): https://docs.docker.com/desktop/release-notes/
  4. 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
  5. 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/

More on Automation

Automation

GitHub Actions Blocks pull_request_target by Default on December 2, 2026: How to Fix Affected CI Workflows

Starting December 2, 2026, GitHub Actions enforces a default event policy blocking pull_request_target in public repositories on Free, Team, and Enterprise Cloud unless an Actions event policy explicitly allows it. Blocked workflows fail immediately with startup_failure and zero executed jobs, silently halting auto-labelers, welcome bots, and required fork-PR status checks. Here is how policy layering works, why misconfigured allowlists can accidentally block your pull_request test suite, and how to migrate or scope workflow_path rules safely.

10 min read

Automation

Prefect Acquires ThruWire: Directed Agentic Graphs, Verification Checkpoints, and Foreman Limits

Prefect announced its acquisition of ThruWire on November 30, 2026, bringing co-founders Seth and Josh Rosen into Prefect to unify Dagster, FastMCP, and Prefect around directed agentic graphs. While financial terms and integration dates remain undisclosed, ThruWire's open-source Foreman supervisor stays MIT-licensed—offering a testable, single-worker coding agent gate with clear operational limits.

8 min read

Tell us what is not working

A thirty-minute call, no deck and no obligation. You will leave with a straight answer about whether this is worth building - including if that answer is no.

Start a project

Direct line

hello@codebumble.net
Dhaka, Bangladesh  :   local timeCalls in English or Bangla