酷!學園
技術討論區 => DevOps 討論版 => 主題作者是: netman 於 2016-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:5000
systemctl restart docker
-
較爲正規的解法:
http://phorum.study-area.org/index.php/topic,71615.0.html