Homebrew 的Cask 已经支持 Docker for Mac,因此可以很方便的使用 Homebrew Cask 来进行安装:
1 2 3 4 5 6 7 8 9 10 11
| $ brew cask install docker ==> Creating Caskroom at /usr/local/Caskroom ==> We'll set permissions properly so we won't need sudo in the future Password: # 输入 macOS 密码 ==> Satisfying dependencies ==> Downloading https://download.docker.com/mac/stable/21090/Docker.dmg ######################################################################## 100.0% ==> Verifying checksum for Cask docker ==> Installing Cask docker ==> Moving App 'Docker.app' to '/Applications/Docker.app'. 🍺 docker was successfully installed!
|
备注: 需要一点时间