docker-配置加速器

由于GFW的原因,国内下载docker的镜像很慢,甚至直接超时,这里通过配置加速器的方式,使得拉取docker镜像更加快捷

1
2
3
4
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://3afd256f.m.daocloud.io
vim /etc/docker/daemon.json
{"registry-mirrors": ["http://3afd256f.m.daocloud.io"],"insecure-registries": []}

参考: “加速器”