在centos7.9中使用docker pull某项目时出现报错:
docker pull xxx/xxx
Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 192.168.25.2:53: server misbehaving
考虑是DNS服务的错误,进入虚机网卡配置文件添加DNS服务8.8.8.8或者114.114.114.114
vi /etc/sysconfig/network-scripts/ifcfg-ens33
添加DNS解析后记得重启网卡,才可生效
systemctl restart network
然后继续pull即可