Docker Community Forums

Share and learn in the Docker community.

Question: How to install Docker Desktop 3.3.3 latest on Hyper-V backend by code

Hi Forum,

I have a special requirement where I need to install docker desktop automatically on Hyper-V backend and not WSL2. I have written an ansible role to do that but in short in one of the steps its is doing the following

$pinfo.Arguments = “install --quiet”.

Unfortunately after the installation, docker cant start properly because in the docker desktop setting GUI, the check box for ‘Use WSL2 based back end’ is switched on by default!

Is there way that I can pass an argument to exclusivley tell ‘Use Hyper-V’ and not wsl?

Thanks for any help on this.