1. ssh到rancher虚拟机
LIMA_HOME="$HOME/Library/Application Support/rancher-desktop/lima" "/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl" shell 0
2. 提升权限 sudo bash
3. 更改镜像源
vi /etc/docker/daemon.json
使用清华源和百度源
{
"registry-mirrors": [
"https://docker.mirrors.ustc.edu.cn",
"https://mirror.baidubce.com"
]
}
4. 退出虚拟机命令 exit