1、进入阿里云镜像加速页面;
https://cr.console.aliyun.com/#/accelerator
2、修改/etc/docker/daemon.json文件配置,没有则新建;
{ "registry-mirrors": ["https://72idtxd8.mirror.aliyuncs.com"] }
3、重启daemon;
systemctl daemon-reload
4、重启docker服务;
systemctl restart docker
1、进入阿里云镜像加速页面;
https://cr.console.aliyun.com/#/accelerator
2、修改/etc/docker/daemon.json文件配置,没有则新建;
{ "registry-mirrors": ["https://72idtxd8.mirror.aliyuncs.com"] }
3、重启daemon;
systemctl daemon-reload
4、重启docker服务;
systemctl restart docker
原文:https://www.cnblogs.com/ianduin/p/8678922.html