Mac 安裝Docker
brew search docker
首先查找Docker相關(guān)安裝包
$ brew search docker
==> Formulae
docker docker-compose-completion docker-ls docker-machine-driver-vmware docker-machine-parallels docker2aci
docker-clean docker-credential-helper docker-machine docker-machine-driver-vultr docker-slim dockerize
docker-completion docker-credential-helper-ecr docker-machine-completion docker-machine-driver-xhyve docker-squash lazydocker
docker-compose docker-gen docker-machine-driver-hyperkit docker-machine-nfs docker-swarm
==> Casks
docker docker-toolbox homebrew/cask-versions/docker-edge
brew info docker
可以觀察到有兩個(gè)Docker安裝包读串,分別查看下兩個(gè)包的具體詳情
$ brew info docker
docker: stable 19.03.7 (bottled)
Pack, ship and run any application as a lightweight container
https://www.docker.com/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/docker.rb
==> Dependencies
Build: go ?, go-md2man ?
==> Analytics
install: 42,371 (30 days), 91,133 (90 days), 424,546 (365 days)
install-on-request: 35,256 (30 days), 80,846 (90 days), 359,355 (365 days)
build-error: 0 (30 days)
$ brew cask info docker
docker: 2.2.0.3,42716 (auto_updates)
https://www.docker.com/community-edition
Not installed
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/docker.rb
==> Names
Docker Desktop
Docker Community Edition
Docker CE
==> Artifacts
Docker.app (App)
從詳情下可以看出饰及,cask下的是桌面版"Docker Desktop"富腊,然后就可以開始安裝桌面版了
brew cask install docker
$ brew cask install docker
==> Satisfying dependencies ==> Downloading https://download.docker.com/mac/stable/42716/Docker.dmg ######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'docker'.
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'.
?? docker was successfully installed!
安裝完成后弟孟,可以在啟動(dòng)臺(tái)里找到Docker.app犹芹,打開后頂部菜單欄也會(huì)出現(xiàn)docker logo恢口,至此Mac下的Docker就安裝成功了唧喉,就可以enjoy it了,具體配置可根據(jù)自己需要進(jìn)行設(shè)置亭罪。