Docker Community Forums

Share and learn in the Docker community.

Docker for Windows w/ VMWare installed


(Jonlpercsol) #1

I have VMWare VMs that are necessary for me to use. Installing Docker for Windows enables Hyper-V, which prevents you from being able to use VMWare Workstation or Player. In the future, I would like to see Docker for Windows be able to specify which Virtualization platform to use, Hyper V, VirtualBox or VMWare. I know that I could continue to use Docker Toolbox, but that is not the same on Windows 10. I could also install VMWeare Workstation in a VM and run my VMs nested, but that seems like an unnecessary Russian nesting doll of a setup for something that should just be possible. We already have a Workstation driver for docker toolbox. It seems to me that Docker for “X”, windows/mac, should be able to integrate with these drivers and I should be able to deploy my containers with Docker for “X” on any of those platforms, instead of it being tied directly to windows hyper v, or on mac, virtual box.

Perhaps in 1.13. Until then I will have to continue to use Docker Toolbox.


(Michael Friis) #2

Thanks for your thoughtful post. We recognize this is a limitation of Docker for Windows.

The driver model from Docker Machine doesn’t map cleanly to Docker for Windows because Docker for Windows is more integrated and tightly coupled (eg. we have a networking proxy that relies on hyper-v sockets). This is an unpleasant tradeoff between flexibility vs. consistency and tight integration that lets us try to tackle VPN durability and other common problems with Toolbox.


(St8l3ss) #3

This issue has been a deal breaker for me as well. I need VMware more than I need Docker for Windows at this point. I do embedded Linux development so I need to run Ubuntu Desktop on VMware in order to drive exotic USB devices (J-Tag debugger, USB to serial adapter, etc.). Maybe I could run Docker for Windows inside a Windows 10 VM running on top of VMware but that seems like a terrible workaround. A button so I can easily turn Hyper-V on or off whenever I want to start or stop Docker for Windows would suffice.


(Michael Friis) #4

Switching Hyper-V on and off is not very simple.

Also see responses here: https://github.com/docker/for-win/issues/6


(St8l3ss) #5

Hanselman’s “No Hyper-V” boot menu option is good enough for me. Thanks for the tip!

I have no interest in using VMware or VirtualBox as alternate Docker virtualization backends. Hyper-V is the way to go for containers on Windows as far as I’m concerned.


(Steve Freeman) #6

The absolute worst case running on Windows (any version) is to run Linux in VMware and host your Docker testbed there. This is almost the same as Docker Toolbox except that you get to use VMware Workstation instead of VirtualBox. You can host the docker client (docker.exe) on Windows and point it to the runtime environment.

Truthfully, this may also be the best solution for running on Windows as well.


(Kevindahl) #7

That is most definitely the better solution. Hyper-V running any non-MS OS is notoriously flaky, and largely unsupported - case in point:

link


(Snowpong) #8

So is there no way to run Docker on Windows together with either HAXM or Genymotion at the same time?
And, one can only run one or the other, and the way to do that is to reboot between Hyper-V and no-Hyper-V?

With Hyper-V being so exclusive https://en.wikipedia.org/wiki/Hyper-V#VT-x_handling I really can’y see how this is the best technology to use for Docker for Windows.


(Nicolasalbert) #9

I use docker for Windows at the same time of my VmWare, HAXM, Virtuabox VMs !
How ?
I don’t use Hyper-V at all but I install docker using Docker Toolbox that use Virtualbox.
The integration isn’t perfect, but that do the job.


(Pluczak99) #10

Let’s retell the story.
In the beginning of 2000s Microsoft did not manage to buy VMWare (VMWare was resistant to the “offer”, probably fearing that their innovative ideas would be killed by MS management), so instead MS bought Connectix and started virtualization adventure with Virtual PC (a magnificent piece of cr*p - it could not run a 64-bit OS on a 64-bit OS physical host), which then morphed into Virtual Server (I used it for a few years) and subsequently into Hyper-V, which - finally, growing simultaneously as VMWare products did - became a kind of of a competition for it. Except that MS has been doing the same thing as with IE and other Web browsers - once you enabled HyperV, you couldn’t run VMWare and vice versa. There was a period of time in 2nd part of 2000s when I could run MS Virtual Server and VMWare Workstation side by side on the same Dell server. Not anymore.


(Pluczak99) #11

As of Nov 30, 2018, the Docker problem on Win 10 with using simultaneously Windows and Linux containers is not resolved.

The worst case (albeit working) is to dual boot from 2 OS boot installation (Windows 10 or Linux), where one allows Windows Containers, and the other allows Linux containers. Assuming your demo/PoC doesn’t require these 2 environments to be connected at the same time.

Frankly, using Docker under Win 10 isn’t making the product any favors, just the opposite. For comparison, MySQL with MySQL Workbench CE on Windows is phenomenal. Docker on Win 10 is an afterthought and treated by the Docker team like an orphan.