kubernetes minikube无法启动:由于HOST_JUJU_LOCK_PERMISSION而退出

5jvtdoz2  于 2022-11-28  发布在  Kubernetes
关注(0)|答案(2)|浏览(488)

我想安装minikube,在启动命令a后得到以下错误文本:

😄  minikube v1.26.1 on Ubuntu 22.04
❗  minikube skips various validations when --force is supplied; this may lead to unexpected behavior
✨  Using the docker driver based on existing profile
🛑  The "docker" driver should not be used with root privileges. If you wish to continue as root, use --force.
💡  If you are running minikube within a VM, consider using --driver=none:
📘    https://minikube.sigs.k8s.io/docs/reference/drivers/none/
💡  Tip: To remove this root owned cluster, run: sudo minikube delete
👍  Starting control plane node minikube in cluster minikube
🚜  Pulling base image ...
✋  Stopping node "minikube"  ...
🛑  Powering off "minikube" via SSH ...
🔥  Deleting "minikube" in docker ...
🤦  StartHost failed, but will try again: boot lock: unable to open /tmp/juju-mke11f63b5835bf422927bf558fccac7a21a838f: permission denied
😿  Failed to start docker container. Running "minikube delete" may fix it: boot lock: unable to open /tmp/juju-mke11f63b5835bf422927bf558fccac7a21a838f: permission denied

❌  Exiting due to HOST_JUJU_LOCK_PERMISSION: Failed to start host: boot lock: unable to open /tmp/juju-mke11f63b5835bf422927bf558fccac7a21a838f: permission denied
💡  Suggestion: Run 'sudo sysctl fs.protected_regular=0', or try a driver which does not require root, such as '--driver=docker'
🍿  Related issue: https://github.com/kubernetes/minikube/issues/6391
cuxqih21

cuxqih211#

如果Minikube安装在较低的环境中,您可以运行以下命令吗?

rm /tmp/juju-*

unable to open /tmp/juju-kubeconfigUpdate: permission denied

pnwntuvh

pnwntuvh2#

我试过这个命令,它对我很有效:

minikube delete && minikube start

相关问题