docker下载镜像加速

1、如何获取阿里云加速地址

参考文档

https://yq.aliyun.com/articles/29941

关于加速器的地址,你只需要登录容器Hub服务的控制台,左侧的加速器帮助页面就会显示为你独立分配的加速地址。
Hub服务的控制台: https://cr.console.aliyun.com/?spm=a2c4e.11153940.blogcont29941.10.520269d6mb2QSC


2、给我分配的加速地址如下:这个地址是永久的,固定的,再换虚拟机也不能注册,只能一次生成,重复利用,

{ "registry-mirrors": ["https://wb2g6zxl.mirror.aliyuncs.com"]}
 

3、如何使用阿里云加速
 

[root@bogon ~]# vi /etc/docker/daemon.json 
{ "registry-mirrors": ["https://wb2g6zxl.mirror.aliyuncs.com"]}

如果设置了还是不管用,就是公司网速慢的问题, 之前用联通4g无线,速度很快,后来用移动,速度明显慢下来。


然后重启docker
[root@node-1 ~]# systemctl restart docker


阿里加速地址: https://yq.aliyun.com/articles/29941

我的 https://wb2g6zxl.mirror.aliyuncs.com

 
 
原文地址:https://www.cnblogs.com/effortsing/p/10060610.html