從docker私有倉庫拉取鏡像失?。?http: server gave HTTP response to HTTPS client

當(dāng)從私有鏡像庫拉取鏡像時出現(xiàn)如下問題:
docker pull myregistry:xx
Error response from daemon: Get https://xxx:5000/v1/_ping: http: server gave HTTP response to HTTPS client
解決方法:
修改該或者新建/etc/docker/daemon.json
添加下面這條語句:
{ "insecure-registries":["myregistry.example.com:5000"] }
然后重啟docker服務(wù):
sudo service docker restart
解決。
參考:https://github.com/docker/distribution/issues/1874

docker version
Client:
Version: 1.12.1
API version: 1.24
Go version: go1.6.2
Git commit: 23cf638
Built: Tue, 27 Sep 2016 12:25:38 +1300
OS/Arch: linux/ppc64le

Server:
Version: 1.12.1
API version: 1.24
Go version: go1.6.2
Git commit: 23cf638
Built: Tue, 27 Sep 2016 12:25:38 +1300
OS/Arch: linux/ppc64le

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容