Mac 安装docker

安装docker有两种方式:
1、官网下载

[https://docs.docker.com/docker-for-mac/install/](https://docs.docker.com/docker-for-mac/install/)

速度太慢了
2、用homebrew下载


ihomebrew下载遇到的问题.png

刚开始直接用命令:brew cask install docker
下载的很慢,直接挂掉了
然后做了调整:

fangdeMacBook-Pro:~ fang$ cd "$(brew --repo)/Library/Taps/"
fangdeMacBook-Pro:Taps fang$ cd homebrew
fangdeMacBook-Pro:homebrew fang$ git clone https://mirrors.ustc.edu.cn/homebrew-cask.git
Cloning into 'homebrew-cask'...
remote: Enumerating objects: 450025, done.
remote: Total 450025 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (450025/450025), 271.30 MiB | 4.05 MiB/s, done.

下载成功了。
成功之后,在启动台会看到docker的图标,直接点击就可以了

你可能感兴趣的:(Mac 安装docker)