在windows下安装docker Toolbox 启动Docker Quickstart Terminal 失败!
问题描述
windows7(64)安装玩docker Toolbox 后启动Docker Quickstart Terminal 失败!
找不到vboxmanage.exe 这是什么原因呢?
双击start.sh就能够正常初始化
大概的放一下start.sh代码吧
#!/bin/bashtrap ’[ '$?' -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.exeSTEP='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
找不到原因!
问题解答
回答1:这个是windows下面没有设置VirtualBox的安装路径的环境变量(VBOX_MSI_INSTALL_PATH或者VBOX_INSTALL_PATH),把这两个环境变量设上应该就可以了。
相关文章: