安装时push镜像失败??来看看如何快速解决问题

许多用户在安装时快要安装成功时却出现这样的错误;是不是很无奈,大多数情况下出现此类错误的原因是在安装rainbond之前安装过docker

FAILED - RETRYING: Rainbond | Push images to local image registry (5 retries left).
FAILED - RETRYING: Rainbond | Push images to local image registry (4 retries left).
FAILED - RETRYING: Rainbond | Push images to local image registry (3 retries left).
FAILED - RETRYING: Rainbond | Push images to local image registry (2 retries left).
FAILED - RETRYING: Rainbond | Push images to local image registry (1 retries left).

TASK [node/up : Rainbond | Push images to local image registry] *********************************************************************************************************************
fatal: [461f4d56-1be1-5348-49c0-f2391f990faa]: FAILED! => {"attempts": 5, "changed": true, "cmd": "bash /tmp/install/pushimage.sh > /tmp/install/pushimage.log", "delta": "0:00:02.260585", "end": "2019-12-23 22:19:13.079865", "msg": "non-zero return code", "rc": 123, "start": "2019-12-23 22:19:10.819280", "stderr": "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority\nGet https://goodrain.me/v2/: x509: certificate signed by unknown authority", "stderr_lines": ["Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority", "Get https://goodrain.me/v2/: x509: certificate signed by unknown authority"], "stdout": "", "stdout_lines": []}

解决办法如下

# 添加一个私有仓库的地址 [goodrain.me]
[root@ ~]#: vi /etc/docker/daemon.json
{
  "registry-mirrors": [
    "https://dockerhub.azk8s.cn",
    "https://docker.mirrors.ustc.edu.cn",
    "http://hub-mirror.c.163.com"
  ],
  "insecure-registries": [
    "goodrain.me"
  ],
  "max-concurrent-downloads": 10,
  "log-driver": "json-file",
  "log-level": "warn",
  "log-opts": {
    "max-size": "10m",
    "max-file": "3"
    },
  "data-root": "/var/lib/docker"
}

重启使配置生效

systemctl daemon-reload
systemctl restart docker

重新执行 grctl init命令安装rainbond

2 Likes