自上个小时以来GitLab CI引发的错误,无法继续。 .gitlab-ci.yml
未更改且非常简单(如末尾所示)。
仅更改Dockerfile
- 但系统不是事件启动Dockerfile
。什么是补救措施?
错误日志
Running with gitlab-ci-multi-runner 1.9.0 (82714ae)
Using Docker executor with image docker:latest ...
Pulling docker image docker:dind ...
ERROR: Preparation failed: Post https://67.205.149.124:2376/v1.18/images/create?fromImage=docker%3Adind: net/http: timeout awaiting response headers
Will be retried in 3s ...
Using Docker executor with image docker:latest ...
Pulling docker image docker:dind ...
ERROR: Preparation failed: Post https://67.205.141.137:2376/v1.18/images/create?fromImage=docker%3Adind: net/http: timeout awaiting response headers
Will be retried in 3s ...
Using Docker executor with image docker:latest ...
Pulling docker image docker:dind ...
ERROR: Preparation failed: Post https://192.241.149.44:2376/v1.18/images/create?fromImage=docker%3Adind: net/http: timeout awaiting response headers
Will be retried in 3s ...
ERROR: Build failed (system failure): Post https://192.241.149.44:2376/v1.18/images/create?fromImage=docker%3Adind: net/http: timeout awaiting response headers
.gitlab-ci.yml
image: docker:latest
services:
- docker:dind
stages:
- build
variables:
NAMEBRAN: registry.gitlab.com/myusername/project:$CI_BUILD_REF_NAME
NAMELAST: registry.gitlab.com/myusername/project:latest
build_image:
stage: build
script:
#LOGIN
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
#BUILD [NEEDS PUSH TO NAME] WITH NAME = $NAMEBRAN
- docker build -t $NAMEBRAN .
- docker push $NAMEBRAN
#TAG $NAMEBRAN as $NAMELAST
- docker pull $NAMEBRAN
- docker tag $NAMEBRAN $NAMELAST
- docker push $NAMELAST
only:
- dockerbranch
答案 0 :(得分:1)
开始工作而没有任何修改,也许内部gitlab服务器被重载因此超时错误。
答案 1 :(得分:0)
67.205.149是DigitalOcean的IP地址
DigitalOcean status是绿色的,因此它与平台本身没有直接联系
这似乎不是GitLab-CI gitlab-workhorse
router issue。
因此,请检查GitLab使用的DigitalOcean实例上托管的Docker注册表的状态:它(docker注册表)可能已关闭(即使GitLab Status未提及)。 OP证实了这种情况。
或使用built-in GitLab Docker registry私有实例。