2020年8月24日 星期一

[ 常見問題 ] Private registry push fail: server gave HTTP response to HTTPS client

 Source From Here

Question
Try to pull image from private repo with below error:
$ docker pull myip:5000/cadvisor
Using default tag: latest
Error response from daemon: Get https://myip:5000/v1/_ping: http: server gave HTTP response to HTTPS client


How-To
I get helped from this post, two steps in total to solve this issue:
1. Create or modify /etc/docker/daemon.json
  1. "insecure-registries":["myregistry.example.com:5000"] }  

2. Restart docker daemon
# sudo service docker restart

I agree with @dmcgowan

The --insecure-registry=myip:5000 flag is not getting set on the daemon

but I have no idea about why it only occurred under docker version 1.12. I will keep this issue open in next three days, any comments are welcome.

沒有留言:

張貼留言

[Git 常見問題] error: The following untracked working tree files would be overwritten by merge

  Source From  Here 方案1: // x -----删除忽略文件已经对 git 来说不识别的文件 // d -----删除未被添加到 git 的路径中的文件 // f -----强制运行 #   git clean -d -fx 方案2: 今天在服务器上  gi...