[英]Gitlab-runner: docker or docker-compose not found in root but they already installed
I've already installed gitlab runner and docker and docker-compose via Sudo in CentOS 7/Ubuntu OS and all pipelines work well but when I active another project to the gitlab-runner then it doesn't recognize anything such as sudo.我已经在 CentOS 7/Ubuntu 操作系统中通过 Sudo 安装了 gitlab runner 和 docker 以及 docker-compose,并且所有管道都运行良好,但是当我将另一个项目激活到 gitlab-runner 时,它无法识别诸如 sudo 之类的任何内容。 and also sometimes the current runner acts like the new gitlab project results, docker or docker-compose and I don't know why?
有时当前运行器的行为就像新的 gitlab 项目结果、docker 或 docker-compose 一样,我不知道为什么?
$ whoami
root
$ docker info
/bin/sh: eval: line 59: docker: not found
OR或者
$ docker-compose --version
/bin/sh: eval: line 59: docker-compose: not found
The main problem is we should disable the shared runners because docker and docker-compose or other things is not installed into shared runners.主要问题是我们应该禁用共享运行器,因为 docker 和 docker-compose 或其他东西没有安装到共享运行器中。 so after disabling them, everything will work correctly as well as desired.
因此,在禁用它们后,一切都会如预期般正常工作。
The shared runners have disabled in following image:
共享跑步者已在下图中禁用:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.