Error response from daemon: getsockopt: connection refused

我与影子孤独终老i 提交于 2019-12-23 17:17:35

问题


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

The docker registry is definitely listening on the correct port. Running

ss --listen --tcp -n -p

Gives the result

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!

Thanks in advance!


回答1:


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



来源:https://stackoverflow.com/questions/40789456/error-response-from-daemon-getsockopt-connection-refused

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!