容器镜像上传私库时报错:Get https://192.168.1.252:5000/v1/_ping: http: server gave HTTP response to HTTPS client


容器镜像上传私库时报错:Get https://192.168.1.252:5000/v1/_ping: http: server gave HTTP response to HTTPS client

解决方法: 编辑”/etc/docker/daemon.json“文件,不存在则创建”daemon.json“文件。

[[email protected] images]# vim /etc/docker/daemon.json

在文件中写入: { “insecure-registries”:[“192.168.1.252:5000”] }

保存退出后,重启docker。

[[email protected] images]# systemctl restart docker

容器镜像上传私库时报错:Get https://192.168.1.252:5000/v1/_ping: http: server gave HTTP response to HTTPS client