阅读量:0
问题
ERROR: Get “https://registry-1.docker.io/v2/”: dial tcp: lookup registry-1.docker.io on 192.168.0.1:53: read udp 192.168.0.12:53003->192.168.0.1:53: i/o timeout
修改DNS
vim /etc/sysconfig/network-scripts/ifcfg-ens33
增加
PEERDNS="no" DNS1=8.8.8.8 DNS2=114.114.114.114
重启网络
systemctl restart network
查看DNS
cat /etc/resolv.conf
尝试docker-compose up -d
成功