[[email protected] ~]# docker pull centos
Using default tag: latest
Trying to pull repository docker.io/library/centos ...
Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 119.29.29.29:53: read udp 192.168.100.100:59205->119.29.29.29:53: i/o timeout
解决办法:
[[email protected] etc]# yum install bind-utils // 安装dig工具
[[email protected] etc]# dig @114.114.114.114 registry-1.docker.io
选择上面命令执行结果中的一组解析放到本机的/etc/hosts文件里做映射
[[email protected] etc]# vim /etc/hosts
54.175.43.85 registry-1.docker.io
接着再进行docker pull镜像下载操作
原文地址:https://www.cnblogs.com/mrrr/p/10153980.html
时间: 2024-10-04 02:07:54