Using VMware & Docker? Read this!

By | 10 March 2020

I’m using VMware Workstation (in my case, Workstation 15.5.1) on my Windows 10 computer and I wanted to install Docker. After installing Docker and enabling some Windows features, e.g. Hyper-V, I was able to use it properly.

But now, when I try to run a VM in Workstation, the following message is displayed:

This strange message is linked to Hyper-V. VMware products can’t be used if Hyper-V is installed. At the same time, Docker needs Hyper-V to run!

The only option you have to allow a VM to start is to disable Hyper-V. So I tried to disable the feature in Windows but this isn’t sufficient! You need to change a parameter in the boot registry too.

The issue is, if you disable Hyper-V, Docker will not run! So you have a choice to make here. Everytime you want to use Docker, you have to enable Hyper-V; and if you want to use VMware products, you have to disable Hyper-V… Find below the commands to execute in both cases.

Disabling Hyper-V: Use VMware products

Open a PowerShell in Administrator mode then type:

Then restart. Now VMware products (Player or Workstation) may run!

Enabling Hyper-V: Use Docker

Now if you want to use Docker, you have to enable again Hyper-V. Open a PowerShell in Administrator mode then type:

Then restart. Docker may now be used but not VMware products.

Final note

This situation will not stay like this, but for now it’s the only workaround you have. The issue is under investigation.

Leave a Reply

Your email address will not be published.

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.