错误一:
错误代码:getsockopt: connection refused
具体错误:Get https://192.168.107.165:5000/v1/_ping: dial tcp 192.168.107.165:5000: getsockopt: connection refused
原因:repository 镜像没有起来
解决办法:docker start repository镜像ID
错误二:
错误代码:server gave HTTP response to HTTPS client
具体错误:Get https://192.168.107.165:5000/v1/_ping: http: server gave HTTP response to HTTPS client
原因:1.3以后的docker版本不支持http连接,只支持https连接
解决办法:
vim /etc/docker/daemon.json
{ "insecure-registries":["192.168.107.165:5000"] } ip为部署私有仓库的IP