酷!學園

技術討論區 => DevOps 討論版 => 主題作者是: netman 於 2016-01-13 16:40

主題: [docker] docker push encounters https error
作者: netman2016-01-13 16:40
Problem Description:
Get https refused while pushing to a private registry.

Symbols:
代碼: [選擇]
docker push 1.2.3.4:5000/test
The push refers to a repository [1.2.3.4:5000/test] (len: 1)
unable to ping registry endpoint https://1.2.3.4:5000/v0/
v2 ping attempt failed with error: Get https://1.2.3.4:5000/v2/: dial tcp 1.2.3.4:5000: connection refused
 v1 ping attempt failed with error: Get https://1.2.3.4:5000/v1/_ping: dial tcp 1.2.3.4:5000: connection refused

Solution:
vi /etc/sysconfig/docker
代碼: [選擇]
OPTIONS='--selinux-enabled --insecure-registry 1.2.3.4:5000systemctl restart docker

主題: Re: [docker] docker push encounters https error
作者: netman2016-02-07 09:09
較爲正規的解法:
http://phorum.study-area.org/index.php/topic,71615.0.html