3

我正在运行 dockerized GitLab CI 13.8.3,最近在尝试构建 docker 映像(通过 Kaniko)并将其推送到我的注册表时遇到了一个新错误。管道已经为这个项目工作了几个月,我没有更改我的 docker-compose 或 gitlab-ci.yml 文件。我的 gitlab-ci.yml 的错误和摘录如下。关于我能做些什么来解决这个问题的任何想法?

错误:

error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again: 
checking push permission for "xxxx:5005/xxx/kotlin-starter:": 
creating push check transport for xxxx:5005 failed: Get "https://xxxx:5005/v2/": dial tcp xxxx:5005: i/o timeout

这是我的 gitlab-ci.yml 文件中的适用部分:

build:
  stage: package
  image:
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
  before_script:
    - mkdir -p /kaniko/.docker
    - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
    - |
      echo "-----BEGIN CERTIFICATE-----
      mycertishere
      -----END CERTIFICATE-----" >> /kaniko/ssl/certs/additional-ca-cert-bundle.crt
  script:
    - mkdir -p /kaniko/.docker
    - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
    - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
4

0 回答 0