VMWare and Docker on Same Windows 10 PC
18,569
Solution 1
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.
Solution 2
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.
Related videos on Youtube
Author by
vico
Updated on September 18, 2022Comments
-
vico over 1 year
I would like to use VMware and Dockers in my Windows 10 machine. Docker requires Hyper-V while VMware is angry about it. How to solve this conflict?
-
lx07 over 4 yearsWait for updated VMware. They are working on it but I can't find a release date to give as an answer.
-
Biswapriyo over 4 yearsTheoretically, this is somewhat similar with this question.
-
Ramhound over 4 years@lx07 - VMWare has Q3 FY releases. So we are looking at a good 8 months before that version of VMWare Workstation comes out (unless they have changed in recent years).
-
Ramhound over 4 years"How to solve this conflict?" - You don't
-
-
harrymc over 3 yearsThis answer is now outdated, as both products now support nested virtualization.
-
Ramhound over 3 yearsWindows Sandbox conflicts with VMWare. Only Hyper-V and Windows Hypervisor Platform should be enabled. All other features that typically use Hyper-V are not compatible with VMWare and VirtualBox. WSL2 doesn’t even require Hyper-V Only mentioned WSL2 due to numerous incorrect answers that seem to indicate that WSL2 requires it. As for the downvote properly quotation is required
-
Ramhound over 3 years@wmeiten - Expecting external solutions to be quoted doesn’t make me the “downvote police”, calling me the “downvote police” isn’t exactly friendly and civil. Expecting external sources to be quoted and cited isn’t unreasonable
-
dun over 2 years
Virtual Machine Platform
gets enabled by Docker itself. However it breaks compatibility with VMWare for me.