无法启动minikube

时间:2019-05-15 14:24:59

标签: docker kubernetes minikube

我在Mac上运行以下命令:

$ /usr/local/bin/minikube start --vm-driver=hyperkit

我遇到以下错误:

  

无法拉出图像,这可能没问题:运行cmd:sudo kubeadm配置图像拉--config /var/lib/kubeadm.yaml:命令失败:sudo kubeadm配置图像拉--config / var / lib / kubeadm .yaml   标准输出:   stderr:无法提取图像“ k8s.gcr.io/kube-apiserver:v1.14.1”:输出:来自守护程序的错误响应:获取https://k8s.gcr.io/v2/:拨打tcp:在192.168.64.1上查找k8s.gcr.io: 53:读取udp 192.168.64.15:48975->192.168.64.1:53:I/O超时

如果我运行docker pull k8s.gcr.io/kube-apiserver:v1.14.1,则命令成功。我试图在Mac上重启docker几次。我还按照其他一些帖子中的建议将dns设置更改为8.8.8.8,但这没有帮助:

$ /usr/local/bin/minikube start --vm-driver=hyperkit

  minikube v1.0.1 on darwin (amd64)
  Downloading Kubernetes v1.14.1 images in the background ...
  Tip: Use 'minikube start -p <name>' to create a new cluster, or 'minikube delete' to delete this one.
  Restarting existing hyperkit VM for "minikube" ...
⌛  Waiting for SSH access ...
  "minikube" IP address is 192.168.64.15
  Configuring Docker as the container runtime ...
  Version of container runtime is 18.06.3-ce
⌛  Waiting for image downloads to complete ...
✨  Preparing Kubernetes environment ...
  Pulling images required by Kubernetes v1.14.1 ...
❌  Unable to pull images, which may be OK: running cmd: sudo kubeadm config images pull --config /var/lib/kubeadm.yaml: command failed: sudo kubeadm config images pull --config /var/lib/kubeadm.yaml
stdout:
stderr: failed to pull image "k8s.gcr.io/kube-apiserver:v1.14.1": output: Error response from daemon: Get https://k8s.gcr.io/v2/: dial tcp: lookup k8s.gcr.io on 192.168.64.1:53: read udp 192.168.64.15:48975->192.168.64.1:53: i/o timeout
, error: exit status 1
: Process exited with status 1
  Relaunching Kubernetes v1.14.1 using kubeadm ...

0 个答案:

没有答案