windows7(64)安裝玩docker Toolbox 後啟動Docker Quickstart Terminal 失敗!
找不到vboxmanage.exe 這是什麼原因呢?
雙擊start.sh就能夠正常初始化
大概的放一下start.sh程式碼吧
#!/bin/bash
trap '[ "$?" -eq 0 ] || read -p "Looks like something went wrong in step ´$STEP´... Press any key to continue..."' EXIT
# TODO: I'm sure this is not very robust. But, it is needed for now to ensure
# that binaries provided by Docker Toolbox over-ride binaries provided by
# Docker for Windows when launching using the Quickstart.
export PATH="/c/Program Files/Docker Toolbox:$PATH"
VM=${DOCKER_MACHINE_NAME-default}
DOCKER_MACHINE=./docker-machine.exe
STEP="Looking for vboxmanage.exe"
if [ ! -z "$VBOX_MSI_INSTALL_PATH" ]; then
VBOXMANAGE="${VBOX_MSI_INSTALL_PATH}VBoxManage.exe"
else
VBOXMANAGE="${VBOX_INSTALL_PATH}VBoxManage.exe"
fi
找不到原因!
這個是windows下面沒有設定VirtualBox的安裝路徑的環境變數(VBOX_MSI_INSTALL_PATH或VBOX_INSTALL_PATH),把這兩個環境變數設上應該就可以了。