Docker pull mirror timeout, i / o timeout

1. Problem Description

I did not even get redis mirror overtime, before all right, I do not know why

2. solve the problem

By 2.1 dig @114.114.114.114 registry-1.docker.ioto find an available IP

I did not want to get IP

2.2 Installation bind-utils
yum -y install bind-utils
2.3 Modify / etc / hosts

Executed again above the dig command to get to an available IP, and IP settings available to get to registry-1.docker.io domain

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 Save / etc / hosts, and retry docker pull redis

Guess you like

Origin www.cnblogs.com/rocker-pg/p/10990671.html