Docker错误:Error response from daemon: Get https://index.docker.io/v1/search?q=mysqln=

编程入门 行业动态 更新时间:2024-10-25 03:33:16

Docker<a href=https://www.elefans.com/category/jswz/34/1771449.html style=错误:Error response from daemon: Get https://index.docker.io/v1/search?q=mysqln="/>

Docker错误:Error response from daemon: Get https://index.docker.io/v1/search?q=mysqln=

使用 docker search ***时 出现错误

Error response from daemon: Get "=mysql&n=25": dial tcp: lookup index.docker.io on 192.168.: read udp 192.168.***:41234->192.168***:53: i/o timeout

应该是因为找不到index.docker.io的域名,解决办法在在hosts文件里面配置域名解析就可以了。

使用dig命令查看可用ip

dig @114.114.114.114 index.docker.io

如果dig命令报错,就先执行以下代码,安装工具

yum -y install bind-utils

找到ANSWER SECTION模块下的ip,添加到hosts文件就行,添加一两个即可。

修改hosts文件,在最后添加:

查到的ip index.docker.io例如:
52.0.124.215 index.docker.io
vim /etc/hosts

最后在执行 docker search mysql 就可以使用了

更多推荐

Docker错误:Error response from daemon: Get https://index.docker.io/v1/search?q=mys

本文发布于:2024-03-06 12:55:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1715387.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   daemon   https   response   Docker

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!