mac安装minikube成功啦!

mac安装minikube
我的系统版本为:macOS 12.7.

1.安装homebrew

/bin/bash -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

安装成功后选择镜像源配置:

Homebrew已经安装成功,接下来配置国内软件下载源。
请选择今后brew install的时候访问那个国内镜像,例如阿里巴巴,输入5回车。
1、中科大国内源
2、清华大学国内源
3、上海交通大学国内源
4、腾讯国内源
5、阿里巴巴国内源(推荐)
请输入序号: 5
你选择了阿里巴巴国内源
环境变量写入->/Users/min/.zprofile
此步骤成功
==> 安装完成,brew版本
Homebrew 4.3.24

安装成功 但还需要重启终端 或者 运行 source /Users/min/.zprofile 否则国内地址无法生效
source /Users/min/.zprofile

2.安装minikube

brew install minikube
顺利安装完成,查看当前安装的版本:
minikube version

minikube version: v1.34.0
commit: 210b148df93a80eb872ecbeb7e35281b3c582c61

3.启动minikube

minikube start
安装失败,报错缺少默认驱动

😄 Darwin 12.7.6 上的 minikube v1.34.0
👎 无法选择默认驱动程序。以下是按优先顺序考虑的内容:
💡 或者你也可以安装以下驱动程序:
▪ docker: Not installed: exec: “docker”: executable file not found in $PATH
▪ hyperkit: Not installed: exec: “hyperkit”: executable file not found in $PATH
▪ parallels: Not installed: exec: “prlctl”: executable file not found in $PATH
▪ qemu2: Not installed: exec: “qemu-system-x86_64”: executable file not found in $PATH
▪ virtualbox: Not installed: unable to find VBoxManage in $PATH
▪ podman: Not installed: exec: “podman”: executable file not found in $PATH
▪ vfkit: Not installed: exec: “vfkit”: executable file not found in $PATH
❌ 因 DRV_NOT_DETECTED 错误而退出:未检测到可用的驱动程序。尝试指定 --driver,或查看 https://minikube.sigs.k8s.io/docs/start/

安装docker驱动:
brew install --cask --appdir=/Applications docker

docker version
Client:
Version: 27.2.0
API version: 1.47
Go version: go1.21.13
Git commit: 3ab4256
Built: Tue Aug 27 14:14:45 2024
OS/Arch: darwin/amd64
Context: default

安装好后再次启动minikube成功:
minikube start

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值