Docker Community Forums

Share and learn in the Docker community.

Running Docker and VirtualBox on the same machine


(Thany) #1

I need to run Docker on my Windows 10 box and VirtualBox as well. How do I do that?


(Michael Friis) #2

Please use Docker Toolbox: https://www.docker.com/products/docker-toolbox


(Thany) #3

I’m not awfully good with Docker at all, but how does Docker relate to Docker Toolbox?

Or rather, why would Docker need to run on Hyper-V when it’s a well-known fact that Hyper-V pretty much destroys the ability to use any other virtual machines sanely? Just checking.


(Michael Friis) #4

You can read more about Docker for Windows here: https://blog.docker.com/2016/03/docker-for-mac-windows-beta/

When building Docker for Windows, we wanted to build an integrated and native-feeling product. Having VirtualBox as a separate install with Toolbox has proved troublesome and error-prone.

This came at the cost of not working with VirtualBox. If you use VirtualBox, you can use Docker Toolbox - it’s continuously updated with the latest Docker Engine releases.


(Thany) #5

Ah ok, so basically you moved to a different (far more aggressive) hypervisor because you couldn’t get it to work with VB. That’s one way of looking at it.

Why didn’t you decide to use WLS? (also known as Linux System on Windows, available with developer mode as of the summer’s anniversary update)
One thing I can say for certain is that the Ubuntu version doesn’t work with WLS. The daemon won’t start. Now there’s an issue with having daemons running in WLS, but normally at least they should start and work.


(Michael Friis) #6

Work on Docker for Windows started before WSL was announced. And as you mentioned, the Linux Docker daemon doesn’t start in WSL because the WSL kernel API shim is not complete, so we couldn’t shift, even if we wanted.


(Dineshcondur) #7

I have the same issue. During installation of Docker for Windows, I gave permissions to enable HyperV I see now that I can use Virtual Box any more. Now, I uninstalled docker for windows tried installing Docker toolbox wont let me complete the installation. How do I go about disabling the HyperV on windows now?


(Michmerr) #8

I’m in the middle of sorting this out for myself. In contrast to my experience years ago with Hyper-V and Windows guests, I’ve found the current Hyper-V to be horrible for hosting Linux guests (full screen resolution locked below the native resolution for my display, failure to start, etc.) So, I’m punting, and using VirtualBox to host my Linux guests.

In order to run 64-bit guests, Hyper-V had to be disabled. If you want to disable Hyper-V, the easiest path is to press the Windows button, then type “turn windows features”. Turn Windows features on or off will resolve somewhere around the d in “windows”, at which point you can select it by hitting enter. Hyper-V will be one of the features that you can uncheck. A reboot will be required.

Now to sort out the use of docker-toolbox…


(Seandisanti) #9

I know this is an old thread but others may come to it as I have, so this appears to be a working solution: https://nickjanetakis.com/blog/docker-tip-13-get-docker-for-windows-and-virtualbox-working-together