[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
Copyright © 2024 Primzahl. All rights reserved.