docker search报错,connection reset by peer

执行docker search redis命令突然报错

Error response from daemon: Get https://registry-1.docker.io/v2/: read tcp 172.31.56.24:44830->3.229.227.53:443: read: connection reset by peer

发现ping不通:ping registry-1.docker.io

更换仓库源:

1、创建daemon.json文件

vim /etc/docker/daemon.json

2、写入自定义仓库

{
  "registry-mirrors": [
    "https://rq5uyt7.mirror.aliyuncs.com",
    "https://docker.mirrors.ustc.edu.cn",
    "https://registry.docker-cn.com"
  ]
}

3、重启

systemctl daemon-reload 
systemctl restart docker

问题解决,记录之 

docker search报错,connection reset by peer

 

上一篇:mac os重置服务权限


下一篇:数据结构中,几种树的结构表示方法(C语言实现)