Abstract:
The container platform Docker recently announced that its self-developed virtual machine manager Docker VMM has been officially launched with Docker desktop version 4.101 (it has been tested before). Docker claims that the new engine is optimized for container workloads and can speed up some file operations and return free memory to the host after the container task is completed.

Docker VMM is responsible for creating and managing Linux virtual machines that run containers. In Docker's own testing, the first search of a large code repository using the working directory was 2.6 times faster on Mac than with Apple's virtualization backend; on Windows it was 19.5 times faster than with the WSL 2 and Hyper-V backends, and 7 times faster. Docker says WSL 2 is faster when using project files in the Linux file system.


In terms of memory, Docker VMM can automatically return free memory to the host after the container completes its work, but Microsoft's WSL 2 backend itself also has memory recycling capabilities.
On Windows, different virtualization backends use their own disk images. After switching, the images, containers, and data volumes created by the original backend will not automatically appear in the new backend. They can still be accessed after switching back to the original backend.

The Windows version of Docker VMM currently does not support container GPU passthrough and cannot directly mount directories stored in the WSL distribution file system. If users require NVIDIA GPUs, they will need to continue to use the WSL 2 backend.
On Mac, Docker VMM only supports devices based on Arm architecture. Currently, VMM does not support Rosetta, so running amd64 architecture images is slower.


Users can switch the backend engine themselves in the Docker desktop settings, but VMM will become the default engine in the future. Switching method: Settings, General, Virtual Machine Management, select VMM or a backend supported by the original system.
Learn more:
https://www.docker.com/blog/announcing-docker-vmm-ga/
Comments