关于docker查询私有仓库报错的问题

【字号: 日期:2023-02-16浏览:28作者:雯心

问题描述

Error response from daemon: invalid registry endpoint https://192.168.254.130:5000/... Get https://192.168.254.130:5000/... dial tcp 192.168.254.130:5000: getsockopt: connection refused. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add --insecure-registry 192.168.254.130:5000 to the daemon’s arguments. In the case of HTTPS, if you have access to the registry’s CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/192.168.254.130:5000/ca.crt

我创建成功docker的私有仓库,然后执行docker docker search 192.168.254.130:5000/test 的命令,就报了上面的错误,请问各路大佬,有何解决办法。网上的教程试过,没成功,不知道是自己的操作的姿势不对还是本人脸黑的原因。

问题解答

回答1:

好像是证书未信任,参考官网资料 https://docs.docker.com/regis...

相关文章: