about
使用docker pull时,拉取镜像太慢,无非就是镜像在国外..... 解决办法,就是配置国内的镜像源,一般由阿里家的、网易家的、docker中国官方的.....
推荐方案
- 编辑
/etc/docker/daemon.json文件(没有该文件就创建),中加下面参数(注意json串的格式):
json
{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn", "http://hub-mirror.c.163.com", "https://registry.docker-cn.com"]
}- 重启docker服务:
systemctl restart dockerthat's all
see also: