You want to have an environment with Docker for development and testing without interfering your stable machine.
Set-VMProcessor -VMName $vmName -ExposeVirtualizationExtensions $true
2. Open PowerShell as Administrator and execute 2 commands below.
Set-ExecutionPolicy -ExecutionPolicy "Unrestricted" .\Enable-NestedVm.ps1 "Windows 10 Dev" "Windows 10 Dev" is the virtual machine name without quotes.
3. Install Docker. Restart the virtual machine.
4. Install any additional software if needed, restart the virtual machine again.
5. Open a Command Prompt and test Docker installation.
docker pull hello-world && docker run hello-world Rerun the command if you get an issue in the first run.