VMWare and Docker on Same Windows 10 PC
This is now possible after Windows 10 May 2020 Update (Build 19041) with WSL2
- Install WSL 2 Linux Kernal
- Turn on
Virtual Machine Platform
Windows Feature -
Hyper-V
,Windows Hypervisor Platform
andWindows Sandbox
should be turned off - Restart your PC
-
Set Default WSL version to WSL 2 by Running
wsl --set-default-version 2
on PowerShell
Now you can use Docker
, VMWare
, Intel HAXM (For android emulator)
at the same time if you want.
VMware and Hyper-V are both a Hypervisor, so each wants to control exclusively the virtualization features of the CPU, resulting in that both cannot be setup on the same computer at the same time.
The only solutions I can see are:
- Install VMware only, then create a Linux VM and run Docker inside, or
- Install VMware together with the older Docker Toolbox on Windows which does not use Hyper-V and so there is no conflict
- Install one or the other, uninstalling the one you are not using at the moment.