docker pull 鏡像時報錯:nginx
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 hostdocker
以下圖tcp
抓住結尾是no such host的報錯server
這個是由於dns域名沒有解析的緣由。編輯/etc/resolv.conf 文件,增長一行dns地址,例如:nameserver 8.8.4.4blog
保存後,繼續執行拉取鏡像的命令,結果成功了token