【发布时间】:2018-12-04 15:01:31
【问题描述】:
环境: 我有 Windows-7 机器。我已经安装了 Docker Toolbox(安装了 Oracle Virtual Box 版本:5.2.8r121009)
C:\Users>VBoxManage -version
5.2.8r121009
当我启动虚拟机并使用命令检查 linux 版本时:cat /proc/version
Linux version 4.9.93-boot2docker (root@eb591e1ad697) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Thu May 10 16:27:54 UTC 2018
Minikube 版本(使用 minikube 版本):v0.28.0
操作系统(例如来自 /etc/os-release):
NAME=Boot2Docker
VERSION=18.05.0-ce
ID=boot2docker
ID_LIKE=tcl
VERSION_ID=18.05.0-ce
PRETTY_NAME="Boot2Docker 18.05.0-ce (TCL 8.2.1); HEAD : b5d6989 - Thu May 10 16:35:28 UTC 2018"
ANSI_COLOR="1;34"
HOME_URL="http://boot2docker.io"
SUPPORT_URL="https://github.com/boot2docker/boot2docker"
BUG_REPORT_URL="https://github.com/boot2docker/boot2docker/issues"
VM 驱动程序(例如 cat ~/.minikube/machines/minikube/config.json | grep DriverName):没有这样的文件或目录
ISO 版本(例如 cat ~/.minikube/machines/minikube/config.json | grep -i ISO 或 minikube ssh cat /etc/VERSION):没有这样的文件或目录
发生了什么:
我使用 curl 安装了 kubectl:
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
然后按照https://kubernetes.io/docs/tasks/tools/install-kubectl/ 上的说明,我将 kubectl 设为可执行并移至 PATH。
然后我去了https://github.com/kubernetes/minikube/,然后去Linux的安装部分安装minikube。 即安装的 minikube 版本:v0.28.0
详情见下:
docker@default:/home/kubernetes$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube
/usr/local/bin/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 40.8M 100 40.8M 0 0 2039k 0 0:00:20 0:00:20 --:--:-- 2373k
docker@default:/home/kubernetes$ minikube version
minikube version: v0.28.0
docker@default:/home/kubernetes$ minikube start
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Downloading Minikube ISO
153.08 MB / 153.08 MB [============================================] 100.00% 0s
E0625 21:25:20.969504 6371 start.go:168] Error starting host: Error creating host: Error executing step: Running precreate checks.
: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path.
Retrying.
E0625 21:25:20.975760 6371 start.go:174] Error starting host: Error creating host: Error executing step: Running precreate checks.
: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path
================================================================================
An error has occurred. Would you like to opt in to sending anonymized crash
information to minikube to help prevent future errors?
To opt out of these messages, run the command:
minikube config set WantReportErrorPrompt false
================================================================================
Please enter your response [Y/n]:
预期结果: minikube 应该可以正常启动,没有任何错误。
重现它的步骤:
1. Get windows docker toolbox and install on windows 7
2. start docker quickstart terminal
3. ssh docker@192.168.99.100
4. install-kubectl
5. install minikube
6. command: start minikube
================================================ =========
更新-1
@mk_sta 在 cmets 中建议:
我重新安装了最新版本的 VirtualBox,然后运行 docker-machine 命令,我得到了同样的错误。
docker@default:~$ docker-machine version
docker-machine version 0.14.0, build 89b8332
docker@default:~$ docker-machine create --driver virtualbox default
Creating CA: /home/docker/.docker/machine/certs/ca.pem
Creating client certificate: /home/docker/.docker/machine/certs/cert.pem
Running pre-create checks... Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path"
我还通过 curl 为 linux 安装了 kubectl 二进制文件。 当我尝试检查其版本时,出现以下错误
docker@default:~$ kubectl version
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.0", GitCommit:"91e7b4fd31fcd3d5f436da26c980becec37ceefe", GitTreeState:"clean", BuildDate:"2018-06-2
7T20:17:28Z", GoVersion:"go1.10.2", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
【问题讨论】:
-
@KenWhite 编辑标题。感谢您的建议
标签: docker windows-7 kubernetes virtualbox minikube