执行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
问题解决,记录之