【备注】从Docker Desktop切换到Colima
换乘
# Docker for Macを消す
# brewでdockerdesktopをinstallしてなかったらhttps://docs.docker.com/desktop/uninstall/をみてアンインストール
brew uninstall --casks docker
安装colima
# docker と docker-composeも必要なのでもし入ってないなら一緒にいれる
brew install colima docker docker-compose
启动
colima start
其他选项请参阅官方网站。 .)
如果遇到以下的错误,只需使用Docker和Docker Compose完成剩下的任务。
[+] Running 0/0
⠋ xxx Pulling 0.0s
error getting credentials - err: docker-credential-desktop resolves to executable in current directory (./docker-credential-desktop), out: ``
删除配置。
rm ~/.docker/config.json
在Colima,我使用Buildx。
从这里开始
brew install docker-buildx
mkdir ~/.docker/cli-plugins
ln -sfn $(which docker-buildx) ~/.docker/cli-plugins/docker-buildx
docker buildx install