8
Mac 下安装 minikube 在拉取镜像时失败 ImagePullBackOff
source link: https://tianmingxing.com/2022/10/08/minikube%E6%8B%89%E5%8F%96%E9%95%9C%E5%83%8F%E5%A4%B1%E8%B4%A5/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Mac 下安装 minikube 在拉取镜像时失败 ImagePullBackOff
2022-10-08minikube
7
-
- 在拉取镜像时 Pod 提示错误
Failed to pull image "XXX": rpc error: code = Unknown desc = context canceled
- 在节点机器上
docker pull XXX
可以成功拉取到镜像
- 在拉取镜像时 Pod 提示错误
-
- 在节点机器上(安装 minikube 的机器)上执行
minikube ssh
进入容器内,按下面操作执行:sudo touch /etc/docker/daemon.json
sudo chmod 777 /etc/docker/daemon.json
echo '{"registry-mirrors": ["https://[自己申请后替换].mirror.aliyuncs.com"]}' > /etc/docker/daemon.json - 上面镜像地址可从阿里云申请,或者用其它厂商提供的国内加速地址都可以。
- 在节点机器上(安装 minikube 的机器)上执行
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK