来自守护程序的错误响应:getsockopt:连接被拒绝 [英] Error response from daemon: getsockopt: connection refused
本文介绍了来自守护程序的错误响应:getsockopt:连接被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试从私有Docker注册表中提取映像时,出现错误
When I try to pull an image from a private Docker Registry I get the error
Error response from daemon: Get https://XX.XX.XX.XXX:5000/v1/_ping: dial tcp XX.XX.XX.XXX:5000: getsockopt: connection refused
docker注册表肯定在侦听正确的端口。正在运行
The docker registry is definitely listening on the correct port. Running
ss --listen --tcp -n -p
给出结果
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 *:22 *:*
LISTEN 0 128 :::22 :::*
LISTEN 0 128 :::5000 :::*
有人对如何解决此问题有任何建议吗?我真的很为难!
Does anyone have any suggestions for how to solve this problem? I'm really stumped by it!
谢谢!
推荐答案
我遇到了同样的问题,似乎与注册表主机上的证书有关。
检查此处有关如何解决此问题的方法: https://github.com/docker/ docker / issues / 23620
I had the same issue, seems like it related to certificates on your registry host. Check here on how to fix that: https://github.com/docker/docker/issues/23620
这篇关于来自守护程序的错误响应:getsockopt:连接被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文