gpt4 book ai didi

linux - 使用 shell gitlab-runner ERRO [0000] 时出现 docker 错误

转载 作者:行者123 更新时间:2023-12-04 11:40:05 24 4
gpt4 key购买 nike

您好,我在安装时遇到此错误,
当我使用命令“gitlab-runner run”或“gitlab-runner start”时:

ERRO[0000] Docker executor: prebuilt image helpers will be loaded from /var/lib/gitlab-runner
奇怪的是,我使用的是 shell runner。
我也试过在另一台服务器上没有问题。
即使我尝试使用 docker build 和没有。
我通过安装
apt install gitlab-runner
我也升级了它并更新了。重建服务器(digitalocean droplet Ubuntu20.04))和jep ...不知道发生了什么。
这里还有一些 gitlab-runner 的输出:
root@Server:~# gitlab-runner verify
ERRO[0000] Docker executor: prebuilt image helpers will be loaded from /var/lib/gitlab-runner.
Running in system-mode.

Verifying runner... is alive runner=xVNzfox5

root@Server:~# gitlab-runner list
ERRO[0000] Docker executor: prebuilt image helpers will be loaded from /var/lib/gitlab-runner.
Listing configured runners ConfigFile=/etc/gitlab-runner/config.toml
test Executor=shell Token=JustAToken
URL=https://gitlab.com/
我发现的关于这个错误的所有信息都是关于 docker runner,但就像我说的那样,我使用的是 shell runner。
感谢有人可以提供帮助。

最佳答案

使用此命令 apt-cache policy gitlab-runner ,您会注意到只有 gitlab-runner 的 11.2.0 版本在存储库中可用,而不是 supported由 Gitlab 提供。
关注 official documentation安装最新版本 14.2.0。

$ sudo curl -L --output /usr/local/bin/gitlab-runner "https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64"
$ sudo chmod +x /usr/local/bin/gitlab-runner
$ sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
$ # Optional sudo rm /etc/systemd/system/gitlab-runner.service
$ sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner

关于linux - 使用 shell gitlab-runner ERRO [0000] 时出现 docker 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65206569/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com