lookup registry-1.docker.io: no such host
场景:执行docker pull时有保持如下:
原因:GWF block掉了
解决方法:
找1台国外的机器,ping下这个域名,如下:
在本地的/etc/hosts中添加一条记录,
52.5.55.90 registry-1.docker.io
然后就可以了!见附件
[root@docker log]# docker pull busybox
latest: Pulling from busybox
cf2616975b4a: Pull complete
6ce2e90b0bc7: Pull complete
8c2e06607696: Already exists
busybox:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.
Digest: sha256:38a203e1986cf79639cfb9b2e1d6e773de84002feea2d4eb006b52004ee8502d
Status: Downloaded newer image for busybox:latest
阅读(9627) | 评论(0) | 转发(0) |