How-To Enable virtualization.framework on macOS hosts
Docker Desktop on macOS is configured by default to use macOS's hypervisor.framework as the virtualization technology used with Docker Desktop Containers. A peformance gain can be achieved by utilizing macOS's virtualization.framework which is an optional setting in Docker Desktop.
There are two ways to enable virtualization.framework, one is more suitable to one-off configuration and the other is more suitable for mass deployment with the tooling of your choice.
- Navigate to the Settings menu in Docker Desktop and click on
General
- Click the box next to
Use Virtualization framework
and then click onApply & restart
- Docker Desktop is now using macOS's virtualization.framework
-
Start with a baseline
settings.json
,: 1a. If you don't have a baselinesettings.json
you can start with this example -
Edit your settings.json and change
"useVirtualizationFramework":false,
to"useVirtualizationFramework:true,
. -
Use the tooling of your choice to distribute the settings.json file to each machine at the following path:
$HOME/Library/Group\ Containers/group.com.docker/settings.json
-
Restart Docker Desktop.