docker - 将命令保存在 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
等等等等
解决方案
推荐阅读
- c# - NLog 与 ASP.NET CORE 2 和 AspNetBufferingWrapper - 未找到错误
- bash - 如何从链接列表中并行卷曲
- c - malloc中的C结构数组
- physics - 如何防止 [圆形] 身体滑入静态身体之间的 0px 间隙
- c++ - 尝试将字符串中的字符与回车进行比较不起作用
- javascript - vuejs将复选框数组传递给父模板仅传递一个值
- php - PDOException: SQLSTATE[08004] [1040] 连接过多
- python - 画布中的 tkinter 按钮功能不会以正确的顺序执行代码
- powershell - 来自安全选项卡和 ACL 的不同安全信息
- javascript - Electron.js ipc.sendSync 冻结