Docker 私有倉庫,pull映象報錯:server gave HTTP response to HTTPS client

衣舞晨風發表於2017-12-29

今天在Ubuntu 16.04.3 LTS想pull一個私服的映象,但出錯了
具體錯誤如下:

Error response from daemon: 
Get  https://xxx.xxx.xxx.xxx:5000/v2/ : 
http: server gave HTTP response to HTTPS client

解決方法:
執行命令:

echo '{ "insecure-registries":["xxx.xxx.xxx.xxx:5000"] }' > /etc/docker/daemon.json
systemctl restart docker

即把
{ “insecure-registries”:[“xxx.xxx.xxx.xxx:5000”] }
寫入到/etc/docker/daemon.json檔案中。

Docker 私有倉庫,上傳映象報錯:server gave HTTP response to HTTPS client

個人微信公眾號:
這裡寫圖片描述

作者:jiankunking 出處:http://blog.csdn.net/jiankunking

相關文章