阿里云Docker镜像库

阿里云容器Hub服务:http://dev.aliyun.com/search.html

来自云端的容器Hub服务

高性能的本地Registry,提供上传、下载、构建及托管的全方位镜像服务。

并且为用户提供加速器,加速官方仓库的下载。加速器使用帮>助:http://console.d.aliyun.com/index2.html/?spm=0.0.0.0.Xx1dX0#/docker/booster

阿里云Hub服务管理后台:http://console.d.aliyun.com/index2.html/?>spm=0.0.0.0.MVZTDP#/docker/image/list

在这里开通容器Hub服务,就可以管理您自己的Docker仓库以及仓库镜像。

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

CentOS的配置方式略微复杂,需要先将默认的配置文件复制出来
/lib/systemd/system/docker.service -> /etc/systemd/system/docker.service
然后再将加速器地址添加到配置文件的启动命令
重启Docker就可以了。

cp -n /lib/systemd/system/docker.service /etc/systemd/system/docker.service 
grep registry-mirror /etc/systemd/system/docker.service
ExecStart=/usr/bin/docker daemon --registry-mirror=https://2h3po24q.mirror.aliyuncs.com
systemctl daemon-reload
service docker restart