报错如下:
The push refers to repository [ip:5000/hello]
Get https://ip:5000/v2/: http: server gave HTTP response to HTTPS client
前提:服务端已经是http请求了,执行vi /usr/lib/systemd/system/docker.service
修改 配置如下
ExecStart=/usr/bin/dockerd -H unix:///var/run/docker.sock -H tcp://0.0.0.0:5678 \
--insecure-registry 0.0.0.0:5000
解决:
更改客户端配置,客户端默认发起https请求,改成http的(若是windows电脑,修改daemon.json配置文件)