报错如下:
[root@localhost /]# docker pull centos:centos7
Error response from daemon: Head "https://registry-1.docker.io/v2/library/centos/manifests/centos7": dial tcp [2600:1f18:2148:bc00:8d61:9b62:40aa:8bb8]:443: connect: network is unreachable
解决办法:
使用如下命令打开配置文件:
vi /etc/resolv.conf
显示如下:把nameserver 后面的IP改成223.5.5.5即可,保存退出,重新pull镜像,速度快的飞起
# Generated by NetworkManager
search localdomain
nameserver 223.5.5.5