目录
2.如果安装成功就点击启动里面的docker图标进入到如下操作。
Docker安装
1.brew安装docker
ruishens-MacBook-Pro:docker ruishen$ brew install --cask --appdir=/Applications docker
==> Downloading https://desktop.docker.com/mac/main/amd64/69879/Docker.dmg
######################################################################## 100.0%
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Linking Binary 'docker-compose.bash-completion' to '/usr/local/etc/bash_completion.d/docker-compose'
==> Linking Binary 'docker.zsh-completion' to '/usr/local/share/zsh/site-functions/_docker'
==> Linking Binary 'docker.fish-completion' to '/usr/local/share/fish/vendor_completions.d/docker.fish'
==> Linking Binary 'docker-compose.fish-completion' to '/usr/local/share/fish/vendor_completions.d/docker-compose.fish'
==> Linking Binary 'docker-compose.zsh-completion' to '/usr/local/share/zsh/site-functions/_docker_compose'
==> Linking Binary 'docker.bash-completion' to '/usr/local/etc/bash_completion.d/docker'
docker was successfully installed!
ruishens-MacBook-Pro:docker ruishen$
2.如果安装成功就点击启动里面的docker图标进入到如下操作。
在接下来有个入门级 的引导使用
上边安装参考:MacOS Docker 安装 | 菜鸟教程
Docker安装可能碰到的问题:
执行 brew install 抱错
ruishens-MacBook-Pro:docker ruishen$ brew install --cask --appdir=/Applications docker
Error:
homebrew-core is a shallow clone.
homebrew-cask is a shallow clone.
To `brew update`, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
These commands may take a few minutes to run due to the large size of the repositories.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
==> Downloading https://desktop.docker.com/mac/stable/amd64/65384/Docker.dmg
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 55e036c4c078a0d1e357d487e7c1a5f13762bfaebace0f9a363ab45f523a828e
Actual: ded6aab91f0d77e2c7420f429462086fc90f3805ff723a65c029a40535de004c
File: /Users/ruishen/Library/Caches/Homebrew/downloads/491180351d0f0034d8b727b3a09b70027b84dc6ad7ccafa8aef31198b7706159--Docker.dmg
To retry an incomplete download