Using Docker and VirtualBox parallelly on Windows 10

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Docker uses the Hyper V functionality so it has to be enabled for Docker to work properly. However, the Hyper V functionality has to be disabled for VirtualBox to work . So this needs to be disabled before you can run VirtualBox.

But there is way to use both parrallely in windows 10. So each time you have to open powershell with admin privileges and after executing the command each time you have to restart the computer.

To disable Hyper-V in order to run Virtual Box use :

bcdedit /set hypervisorlaunchtype off

To turn Hyper-V back in order to use docker run use :

bcdedit /set hypervisorlaunchtype auto

Another way is to use docker toolbox . It uses VirtualBox and then you won’t need Hyper-V but above one is the recommended method.

Written by

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store