首页 > 解决方案 > 将命令保存在 AWS EC2 位置 /etc/rc.d/rc.local 中时,minikube start 未启动 minikube

问题描述

我想 在每次 ec2 实例启动后执行此脚本minikube start 时运行。/etc/rc.d/rc.local

保存时无法启动 minikube,rc.local但是当我以非 root 用户身份执行它时,它可以工作。

感谢任何帮助以使其从rc.local脚本中工作

更新: 我添加了minikube start --force --driver=docker 这一次,它说:

E0913 18:12:21.898974   
10063 status.go:258] 
status error: NewSession: 
new client: 
new client: ssh: handshake failed: 
ssh: unable to authenticate, attempted methods [none publickey], 
no supported methods remain.

Failed to list containers for "kube-apiserver": 
docker: NewSession: new client: new client: 
ssh: handshake failed: ssh: unable to authenticate, 
attempted methods [none publickey], 

没有支持的方法仍然存在 StackOverflow

等等等等

标签: dockerkubernetesamazon-ec2minikube

解决方案


推荐阅读