电光石火电光石火

陌晴博客
ilkhome.cn

docker registry push错误“server gave HTTP response to HTTPS client”

上传报错
Docker execution failed
  Command line [docker push xxx.xxx.xxx.xxx:5000/xxx:0.0.1-SNAPSHOT] returned:
  Get https://xxx.xxx.xxx.xxx:5000/v1/_ping: http: server gave HTTP response to HTTPS client

解决方法:
在”/etc/docker/“目录下,创建”daemon.json“文件。在文件中写入:
{ "insecure-registries":["192.168.1.100:5000"] }
保存退出后,重启docker即可

本博客所有文章如无特别注明均为原创。作者:似水的流年
版权所有:《电光石火》 => docker registry push错误“server gave HTTP response to HTTPS client”
本文地址:http://www.ilkhome.cn/index.php/archives/411/
欢迎转载!复制或转载请以超链接形式注明,文章为 似水的流年 原创,并注明原文地址 docker registry push错误“server gave HTTP response to HTTPS client”,谢谢。

评论