docker push 镜像到本地镜像仓库时报如下错误:
[root@master registry]# docker push 172.20.120.211:32002/harbor-log The push refers to a repository [172.20.120.211:32002/harbor-log] Get https://172.20.120.211:32002/v1/_ping: http: server gave HTTP response to HTTPS client
解决办法是:
在/etc/docker下,修改daemon.json文件,写入:
{"insecure-registries":["172.20.120.211:32002"]}
重启docker
[root@master docker]# systemctl restart docker.service
重新启动registry。
docker push 成功。