Start Docker Quickstart Terminal error This computer is running Hyper-V. VirtualBox won’t boot a 64bits VM when Hyper-V is activated

Windows10 Home Edition
DockerToolbox-18.03.0-ce

Problem Description:

I found out that the home version cannot install Docker Desktop. Since mine is a genuine activation, I won’t be tossing for the professional version;

Then there is still a choice, which is to install DockerToolbox, but after the installation, there is an error when running Docker Quickstart Terminal:

Running pre- create checks...
Error  with pre- create  check : "This computer is running Hyper-V. VirtualBox won't boot a 64bits VM when Hyper-V is activated. Either use Hyper-V as a driver, or disable the Hyper-V hypervisor. (To skip this check, use --virtualbox-no-vtx-check)"

Solution:

File (according to the location you installed): C:\Program Files\Docker Toolbox\start.sh

Add –virtualbox-no-vtx-check part

STEP= "Checking if machine $VM exists"
if [ $VM_EXISTS_CODE -eq 1 ]; then
  " ${DOCKER_MACHINE} " rm -f " ${VM} " &> /dev/null ||:
  rm -rf ~/.docker/machine/machines/ " ${VM} "
  #set proxy variables if they exists
  if [ " ${HTTP_PROXY} " ]; then
    PROXY_ENV = " $PROXY_ENV --engine-env HTTP_PROXY = $HTTP_PROXY "
  fi
  if [ " ${HTTPS_PROXY} " ]; then
    PROXY_ENV = " $PROXY_ENV --engine-env HTTPS_PROXY = $HTTPS_PROXY "
  fi
  if [ " ${NO_PROXY} " ]; then
    PROXY_ENV = " $PROXY_ENV --engine-env NO_PROXY = $NO_PROXY "
  fi
  " ${DOCKER_MACHINE} " create -d virtualbox --virtualbox-no-vtx-check   $PROXY_ENV  " ${VM} "
fi

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *