Docker入门指南:Windows下docker配置镜像源加速下载
Windows下docker配置镜像源加速下载
docker的官方镜像是海外仓库,默认下载耗时较长,而且经常出现断站的现象,因此需要配置国内镜像源。
国内镜像源概述
国内现有如下镜像源可以使用
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn"
配置方式
1.打开docker desktop 进入设置
- 在设置中选择Docker Engine
3.在registry-mirrors下增加国内镜像源
- 完整配置如下
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"registry-mirrors": [
"https://docker.m.daocloud.io/",
"https://huecker.io/",
"https://dockerhub.timeweb.cloud",
"https://noohub.ru/",
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn",
"https://xx4bwyg2.mirror.aliyuncs.com",
"http://f1361db2.m.daocloud.io",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn"
]
}
最后保存即可。