mac M2 多个 docker环境 colim 、docker for mac 、orbstack

三个环境存在是会让 docker 命令混乱

colim

  • 真实的路径
sudo ln -s  /opt/homebrew/bin/docker -> /opt/homebrew/Cellar/docker/24.0.2/bin/docker
  • docker.sock
~/.colim/run/docker.sock

docker for mac

  • 真实的路径
/usr/local/bin/docker -> /Applications/Docker.app/Contents/Resources/bin/docker
  • docker.sock
~/.docker/run/docker.sock

orbstack

  • 真实的路径
 /usr/local/bin/orb -> /Applications/OrbStack.app/Contents/MacOS/bin/orb
  • docker.sock
~/.orbstack/run/docker.sock
posted @ 2023-07-07 16:08  vx_guanchaoguo0  阅读(110)  评论(0编辑  收藏  举报