【发布时间】:2019-10-04 14:52:54
【问题描述】:
这是我第一次尝试在 gitlab.com 上设置基本 CI 工作流程。关注的项目是一个基本的静态网站,我想直接在gitlab上运行一些npm install和gulp build。
我创建了一个.gitlab-ci.yml文件,它被识别并启动。但是 firsts 实现失败了,所以我回到了更基本的 CI 脚本,如下:
image: debian:jessie
stages:
- build
build:
stage: build
script: echo "Building the app"
即使在这种情况下,我也会遇到同样的错误:
ERROR: Job failed (system failure): Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"gitlab-runner-build\": executable file not found in $PATH": unknown (executor_docker.go:833:0s)
我尝试使用以下图片:debian:jessie、node:latest 和 busybox。
请问我该如何解决这个问题?我是不是做错了什么?
提示:请注意,这是一个 Gitlab.com 托管实例。不是一个 本地的。我使用的跑步者托管在 Gitlab 服务器上。
完整的错误信息:
Running with gitlab-runner 12.3.0 (a8a019e0)
on docker-auto-scale fa6cab46
Using Docker executor with image node:latest ...
Pulling docker image node:latest ...
Using docker image sha256:e498dabfee1c6735c9da947e0d438edd13593b7d721c989ba8ede14ab603b900 for node:latest ...
ERROR: Job failed (system failure): Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"gitlab-runner-build\": executable file not found in $PATH": unknown (executor_docker.go:833:0s)
【问题讨论】:
-
该错误表明 GitLab 运行器将自身注入容器时出现问题,如果您使用他们的共享运行器,它可能很快就会修复,请尝试使用另一个基础镜像,例如
busybox -
感谢您的评论。我试过
busybox,同样的错误...... -
一位用户说使用stretch代替jessie解决了他们的问题:gitlab.com/gitlab-org/gitlab/issues/27042#note_215660995
-
你安装了docker gitlab-runner???
-
@AlejandroTeixeiraMuñoz 在本地?我正在使用 gitlab.com,我什么都没安装。