啟動 Docker Quickstart Terminal 報錯 This computer is running Hyper-V. VirtualBox won't boot a 64bits VM when Hyper-V is activated


環境
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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM