windows 安装DockerToolbox出现问题,无法使用

一、问题描述:安装过Docker Toolbox,卸载后,重新安装,无法正常使用,提示 Running pre-create checks... Error with pre-create check: "Hyper-V is installed. VirtualBox won't boot a 64bits VM when Hyper-V is activated. If it's installed but deactivated, you can use --virtualbox-no-vtx-check to try anyways" Looks like something went wrong in step ´Checking if machine default exists´

二、解决方法(参考:谢谢参考文献,试过有用。)

1.以管理员方式打开cmd,输入以下命令。(第二行命令参考第一行命令返回的结果) C:\>bcdedit /copy {current} /d "No Hyper-V" The entry was successfully copied to {ff-23-113-824e-5c5144ea}. C:\>bcdedit /set {ff-23-113-824e-5c5144ea} hypervisorlaunchtype off The operation completed successfully.

2.重启电脑,选择No Hyper-V 系统,进入电脑。

3.下载安装Docker Toolbox。

4.打开安装目录,找到start.sh。 编辑start.sh,

找到下面的代码片段: STEP="Checking if machine $VM exists" if [ $VMEXISTSCODE -eq 1 ]; then "${DOCKERMACHINE}" rm -f "${VM}" &> /dev/null || : rm -rf ~/.docker/machine/machines/"${VM}" #set proxy variables if they exists if [ -n ${HTTPPROXY+x} ]; then PROXYENV="$PROXYENV --engine-env HTTPPROXY=$HTTPPROXY" fi if [ -n ${HTTPSPROXY+x} ]; then PROXYENV="$PROXYENV --engine-env HTTPSPROXY=$HTTPSPROXY" fi if [ -n ${NOPROXY+x} ]; then PROXYENV="$PROXYENV --engine-env NOPROXY=$NOPROXY" fi "${DOCKERMACHINE}" create -d virtualbox $PROXYENV "${VM}" fi

将最后第二行改为: "${DOCKERMACHINE}" create -d virtualbox --virtualbox-no-vtx-check $PROXYENV "${VM}"

5.可以正常使用Docker Quickstart Termial了。

6.以后要用Docker,都要进入N0 Hyper-V 。 --------------------- 本文来自 future_fan 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/u010389429/article/details/51917883?utm_source=copy

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值