Make Hyper-V default engine on Docker Desktop for Windows Installation

Hello, I have a need to make Hyper-V default on installation of some users but currently Docker Desktop is always trying to use WSL. Is there a flag I can pass with the installation exe to turn off wsl?

To configure Docker Desktop to use Hyper-V instead of WSL 2 as the default daemon, you can follow these steps:

  1. Open Docker Desktop and click on the Settings button.
  2. In the General tab, select Hyper-V from the Use the WSL 2 based engine dropdown.
  3. Click Apply & Restart to apply the changes and restart Docker Desktop.

Alternatively, you can also use the --engine=hyperv flag with the Docker.exe command to specify that you want to use Hyper-V as the default daemon.