安装lima
brew install lima
创建配置
echo "\\ndynamic:\n big-sur:\n image: docker://docker:git\n linux:\n image: docker.io/limasoftware/ubuntu:20.04 \\n" > ~/.lima/default.yaml
启动名叫default的虚拟机
limactl start default
测试
limactl shell docker docker search mysql