<3>docker:配置镜像源
说明
- docker镜像,默认是在国外官网下载,导致下载速度特别慢
- 使用国内镜像源,可以有效提高下载速度
常用镜像源地址
# docker国内官方镜像
https://registry.docker-cn.com
# 网易镜像
http://hub-mirror.c.163.com
# ustc 镜像
https://docker.mirrors.ustc.edu.cn
# 中国科技大学镜像
https://docker.mirrors.ustc.edu.cn
# 阿里云镜像
# 进入cr.console.aliyun.com,申请个人镜像
配置镜像源
docker desktop
在registry-mirrors中添加镜像地址

Linux
- 创建docker镜像配置文件,并进入文件
vi /etc/docker/daemon.json
- 编写配置文件,添加配置信息
{
"registry-mirrors": [
"http://hub-mirror.c.163.com",
"https://registry.docker-cn.com",
"https://docker.mirrors.ustc.edu.cn"
]
}
- 重启docker服务
systemctl restart docker
验证配置成功
docker info


浙公网安备 33010602011771号