If you are wondering how to switch between Oracle VM VirtualBox and Docker on Windows 10, you can follow the below steps to find out how you achieve the same.
To start using Oracle VM VirtualBox:
- Open
the Command Prompt as Administrator.
Right Click on Command Prompt > More > Run as
administrator
- Execute
“bcdedit” command
If you observe the last line in the above snapshot, hypervisorlaunchtype is set to Auto.
- For
you to be able to use VirtualBox, hyper-V has to be disabled. To do this,
execute the below command.
bcdedit /set
hypervisorlaunchtype off
- Verify
that hypervisorlaunchtype is
set to off
- Restart
your PC/laptop for the changes to take effect.
- You
should be able to use VirtualBox after restart.
To start using Docker:
- Open
the Command Prompt as Administrator.
Right
Click on Command Prompt > More > Run as administrator
- Execute
“bcdedit” command
If
you observe the last line in the above snapshot, hypervisorlaunchtype is set to off.
- For
you to be able to use VirtualBox, hyper-V has to be enabled. To do this,
execute the below command.
bcdedit /set hypervisorlaunchtype auto
- Verify
that hypervisorlaunchtype is
set to auto
- Restart
your PC/laptop for the changes to take effect.
- You
should be able to use Docker after restart.