[root@node1 ~]# docker search mysql
Error response from daemon: Get https://index.docker.io/v1/search?q=mysql&n=25: dial tcp: lookup index.docker.io on [::1]:53: read udp [::1]:55196->[::1]:53: read: connection refused
使用代理上网无法正常拉取镜像
解决方法:
vi /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="http_proxy=http://代理IP:端口"
systemctl daemon-reload
systemctl restart docker