Error response from daemon: Get https://registry-1.docker.io/v2/library/nginx/manifests/1.14-alpine: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fnginx%3Apull&service=registry.docker.
docker pull 镜像时报错:
Error response from daemon: Get https://registry-1.docker.io/v2/library/nginx/manifests/1.14-alpine: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fnginx%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io: no such host
如下图
抓住结尾是no such host的报错
这个是因为dns域名没有解析的原因。编辑/etc/resolv.conf 文件,增加一行dns地址,例如:nameserver 8.8.4.4
保存后,继续执行拉取镜像的命令,结果成功了