首页 > 其他 > 详细

启动 Docker Quickstart Terminal 报错 This computer is running Hyper-V. VirtualBox won't boot a 64bits VM when Hyper-V is activated

时间:2021-01-27 22:29:29      阅读:41      评论:0      收藏:0      [点我收藏+]
环境
Windows10 家庭版
DockerToolbox-18.03.0-ce
步骤

问题描述:

才发现家庭版本不能安装 Docker Desktop,由于我的是正版激活的,就不折腾为专业版了;

然后还是有选择的,就是安装DockerToolbox,结果安装后运行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)"

 

解决方法:

文件(根据你安装的位置):C:\Program Files\Docker Toolbox\start.sh

增加--virtualbox-no-vtx-check部分

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

 

启动 Docker Quickstart Terminal 报错 This computer is running Hyper-V. VirtualBox won't boot a 64bits VM when Hyper-V is activated

原文:https://www.cnblogs.com/qianxiaoPro/p/14336922.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!