文章目录
- 安装
- 1.下载安装包
- 2.在downloads中打开
- 3.在启动台打开
- 打开终端验证
- 修改国内镜像地址
- 小结
安装
1.下载安装包
到官网下载适配的安装包:https://www.docker.com/products/docker-desktop/
2.在downloads中打开
拖过去
3.在启动台打开
选择推荐设置
跳过登录
跳过
打开成功
打开终端验证
输入命令
docker -v
修改国内镜像地址
点击设置,选择Docker Engine 右侧进行配置
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"features": {
"buildkit": true
},
"registry-mirrors": [
"https://ud6340vz.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn",
"https://cr.console.aliyun.com",
"https://mirror.ccs.tencentyun.com",
"https://docker.registry.cyou",
"https://docker-cf.registry.cyou",
"https://dockercf.jsdelivr.fyi",
"https://docker.jsdelivr.fyi",
"https://dockertest.jsdelivr.fyi",
"https://mirror.aliyuncs.com",
"https://dockerproxy.com",
"https://mirror.baidubce.com",
"https://docker.m.daocloud.io",
"https://docker.nju.edu.cn",
"https://docker.mirrors.sjtug.sjtu.edu.cn",
"https://docker.mirrors.ustc.edu.cn",
"https://mirror.iscas.ac.cn",
"https://docker.rainbond.cc"
]
}
应用并重启
小结
至此在mac上安装docker 成功。