[docker pull nginx] Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io: no such host

修改daemon配置

vim /etc/docker/daemon.json,配置registry-mirrors

{
    "registry-mirrors": ["https://registry.docker-cn.com","http://hub-mirror.c.163.com","https://docker.mirrors.ustc.edu.cn","https://pee6w651.mirror.aliyuncs.com"]
}

重启服务

systemctl restart docker.service

 

posted @ 2022-04-12 21:09  JeromePowell  阅读(1060)  评论(0编辑  收藏  举报