配置DaoCloud加速器:
1 | curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://b18c7aa2.m.daocloud.io |
配置阿里云加速器:
1 | curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s https://zf0ry6xq.mirror.aliyuncs.com |
查看加速配置信息:
1 | docker info |
配置完成后需要重启docker服务:
1 | systemctl restart docker |
或
1 | service docker restart |