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:
- Open Docker Desktop and click on the
- In the
Use the WSL 2 based enginedropdown.
Apply & Restartto 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.