Docker pull镜像超时,i/o timeout

1.问题描述

我在获取redis镜像的时候竟然超时了,之前还好好的,不知道为啥

2.解决问题

2.1通过dig @114.114.114.114 registry-1.docker.io找到可用IP

没有获取到我想要的IP

2.2安装bind-utils
yum -y install bind-utils
2.3修改/etc/hosts

再次执行上面的dig命令,获取到可用IP,并将获取到的可用IP设置给registry-1.docker.io域名

vim /etc/hosts

34.197.189.129 registry-1.docker.io
34.232.31.24   registry-1.docker.io
34.201.196.14  registry-1.docker.io
34.206.236.31  registry-1.docker.io
2.4保存/etc/hosts,并重试docker pull redis

猜你喜欢

转载自www.cnblogs.com/rocker-pg/p/10990671.html
今日推荐