Как исправить при запуске docker из gitlab-runner ошибку поиска gitlab-runner-cache?

Пытаюсь запустить сборку через gitlab-runner docker:
$ gitlab-runner exec docker build:deb
ERRO[0000] Docker executor: prebuilt image helpers will be loaded from /var/lib/gitlab-runner. 
Running with gitlab-runner 11.2.0 (11.2.0)
Using Docker executor with image debian:buster ...
ERROR: Preparation failed: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"gitlab-runner-cache\": executable file not found in $PATH": unknown (executor_docker.go:412:0s)
Will be retried in 3s ...
Using Docker executor with image debian:buster ...
ERROR: Preparation failed: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"gitlab-runner-cache\": executable file not found in $PATH": unknown (executor_docker.go:412:0s)
Will be retried in 3s ...
Using Docker executor with image debian:buster ...
ERROR: Preparation failed: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"gitlab-runner-cache\": executable file not found in $PATH": unknown (executor_docker.go:412:0s)
Will be retried in 3s ...
ERROR: Job failed (system failure): Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"gitlab-runner-cache\": executable file not found in $PATH": unknown (executor_docker.go:412:0s)
FATAL: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"gitlab-runner-cache\": executable file not found in $PATH": unknown (executor_docker.go:412:0s)


Содержимое .gitlab-ci.yml:
stages:
  - build

build:deb:
  stage: build
  image: debian:buster
  tags:
  - deb
  before_script:
  - mkdir build && cd build
  - apt install cmake
  script:
  - cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DRA_STATIC_LINK=ON ..
  - cmake --build . -- -j 8
  artifacts:
    paths:
    - build/run


Как исправить ошибку?
  • Вопрос задан
  • 2949 просмотров
Пригласить эксперта
Ответы на вопрос 1
@klirichek
Есть небольшая путаница с пакетами. Из "официального" репозитория дистрибутива очень часто не подходит.
Проблема с ними в том, что они ссылаются на внешний тэг образов докера, который может "протухнуть". Тогда у раннера нет доступа к образам, где находится нужные ему для работы вспомогательные бинари, и всё падает.

sudo apt-get remove gitlab-runner
sudo curl -L https://packages.gitlab.com/install/repositories/r... | sudo bash
sudo apt-get install gitlab-runner
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы