$ cd /etc/docker
$ cat daemon.json
{
"registry-mirrors": [
"https://kfwkfulq.mirror.aliyuncs.com",
"https://2lqq34jg.mirror.aliyuncs.com",
"https://pee6w651.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com"
],
"dns": ["8.8.8.8","8.8.4.4"]
}
然后重启docker

centos 6 使用seivice docker restart

centos 7 使用 systemctl   restart   docker 

posted on 2020-02-16 18:43  专注于区块链开发  阅读(259)  评论(0编辑  收藏  举报