gitlab runner无法解析docker主机

问题描述 投票:0回答:1

我运行一个自定义的 gitlab-runner 来处理我自己机器上 docker 容器内项目的 ci 管道。该机器是 centos 7 机器,因此使用 podman 而不是 docker。我曾经成功地设置了一切,并且在相当长的一段时间内都完美地工作了。我现在必须重新启动机器,从那时起所有管道都失败并出现错误:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

由于我们使用 podman(vi docker-cli),确实没有 /var/run/docker.sock (但正如我所说,它在过去奇怪地工作)。所以我遵循了here描述的所有步骤。我验证了 podman 套接字是 /run/podman/podman.sock,但现在我得到:

Running with gitlab-runner 15.2.1 (32fc1585)
  on ci_pipeline_hostname key
Preparing the "docker" executor
ERROR: Failed to remove network for build
ERROR: Preparation failed: unable to parse docker host `/run/podman/podman.sock`

我显然不是唯一一个在基于 centos 的操作系统上运行 gitlab runner 的人。所以必须有某种方法让它(恢复)工作。

docker gitlab-ci rhel podman gitlab-runner
1个回答
-3
投票

没有答案的典型堆栈溢出问题:(

© www.soinside.com 2019 - 2024. All rights reserved.