我有Windows 11家庭版(它不允许Hyper-V,只有专业版)。安装了WSL 2和Docker桌面。
使用Chocolatey安装了Minikube,但它拒绝启动。在SO上搜索,我在几个帖子中找到了这个建议,但都没有成功。
PS C:\WINDOWS\system32> docker system prune
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all dangling images
- all dangling build cache
Are you sure you want to continue? [y/N] y
error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/prune": open //./pipe/docker_engine: The system cannot find the file specified.
PS C:\WINDOWS\system32> minikube delete
* Removed all traces of the "minikube" cluster.
PS C:\WINDOWS\system32> minikube start --driver=docker
* minikube v1.25.2 on Microsoft Windows 11 Home 10.0.22000 Build 22000
* Using the docker driver based on user configuration
X Exiting due to PROVIDER_DOCKER_VERSION_EXIT_1: "docker version --format -" exit status 1: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version": open //./pipe/docker_engine: The system cannot find the file specified.
* Documentation: https://minikube.sigs.k8s.io/docs/drivers/docker/
1条答案
按热度按时间2hh7jdfx1#
我想尝试在启动minikube之前运行 *Docker桌面 *。
从Windows“开始”菜单中,我以管理员模式运行了 *Docker Desktop *。
现在我再次运行该命令以删除旧内容,
现在指定Docker驱动程序
我不知道kubernetes,因为我正在学习它,但它似乎已经工作.我希望这将是有用的人,所以他们不必去花99美元升级到Windows Pro -我打算这样做,如果这不工作.
更新:此处是How to run Kubernetes on Windows 11详细信息的链接