mac 下修改 docker 国内镜像
文章目录
mac下安装 docker
官网下载地址:
https://docs.docker.com/docker-for-mac/install/
安装启动 docker
左小角显示 docker running
shell 执行 docker version
$ docker version
Client: Docker Engine - Community
Cloud integration: 1.0.4
Version: 20.10.0
API version: 1.41
Go version: go1.13.15
Git commit: 7287ab3
Built: Tue Dec 8 18:55:43 2020
OS/Arch: darwin/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.0
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: eeddea2
Built: Tue Dec 8 18:58:04 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.4.3
修改国内镜像
docker => Preferences
docker Engine 编辑配置文件
"registry-mirrors": [
"https://md4nbj2f.mirror.aliyuncs.com",
"https://docker.mirrors.ustc.edu.cn",
"https://hub-mirror.c.163.com"
]
}
上面是我们新加的3个国内源
Apply & Restart