Virtual Machine Manager


目录

Docker Desktop supports multiple Virtual Machine Managers (VMMs) to power the Linux VM that runs containers. The options available depend on your platform.

Docker VMM

{{< summary-bar feature_name="VMM" >}}

Docker VMM is a container-optimized virtual machine manager. Starting with Docker Desktop 4.86, it uses Docker's own VMM implementation instead of libkrun, which was used in versions 4.35 through 4.85 on Mac. Built specifically for container workloads, Docker VMM:

Because Docker controls the virtualization layer, it can be monitored and governed in ways that aren't possible with third-party backends. On Windows, Docker VMM provides a stable alternative to WSL 2 with a real VM boundary between the container environment and the host.

Switch to Docker VMM

Docker VMM requires a minimum of 4 GB of memory allocated to the Docker Linux VM. Increase memory in Settings > Resources before switching.

{{< tabs >}} {{< tab name="Mac (Apple Silicon)" >}}

  1. Go to Settings > General > Virtual Machine Manager.
  2. Select Docker VMM.
  3. Select Apply & restart.

If you previously had Docker VMM selected, which engine runs depends on your version:

If you're upgrading from version 4.35 onwards, your setting is preserved and Docker Desktop switches to the new Docker VMM automatically on restart.

{{< /tab >}} {{< tab name="Windows" >}}

  1. Go to Settings > General > Virtual Machine Manager.
  2. Select Docker VMM.
  3. Select Apply & restart.

{{< /tab >}} {{< /tabs >}}

Known issues

Mac only

Alternative VMMs for Mac

Apple Virtualization framework

The Apple Virtualization framework is a stable and well-established option for managing virtual machines on Mac. It has been a reliable choice for many Mac users over the years.

HyperKit (Legacy) for Intel-based Macs

[!NOTE]

HyperKit is deprecated. Docker recommends switching to the Apple Virtualization framework.

HyperKit is a legacy virtualization option for Intel-based Macs. Docker recommends switching to modern alternatives for better performance and to future-proof your setup.

Alternative VMMs for Windows

WSL 2

WSL 2 (Windows Subsystem for Linux 2) is the default Windows backend for Docker Desktop. It runs a full Linux kernel inside a lightweight VM with tight integration into the Windows host file system and networking. WSL 2 is available in both per-user and all-users installation modes and does not require administrator privileges.

For more information, see Docker Desktop WSL 2 backend.

Hyper-V

Hyper-V is Windows' native hypervisor. It runs the Docker Linux VM in a fully isolated virtual machine, providing a strong boundary between the container environment and the Windows host. Hyper-V is only available in all-users installation mode and requires administrator privileges.


版本号 #2
由 壳壳虫 创建于 2026-10-31 19:12:16 UTC
由 壳壳虫 更新于 2026-10-31 19:12:18 UTC