1 简介
由于国内访问直接访问docker hub网速比较慢,拉取镜像的时间就会比较长。一般我们会使用镜像加速或者直接从国内的一些平台镜像仓库上拉取。或者使用加速器
2 使用加速器
使用DaoCloud的加速器
1、先在DaoCloud上注册账号
2、点击加速器

3、进入加速器向下拉页面选择相应的系统

4、直接执行相应系统的命令(我的是Linux)
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io
5、查看结果
# cat /etc/docker/daemon.json
{"registry-mirrors": ["http://f1361db2.m.daocloud.io"]}
6、重启docker
# systemctl restart docker
网友评论