docker - Gitlab-runner:在根目录中找不到docker或docker-compose,但它们已经安装

标签 docker ubuntu docker-compose gitlab-ci gitlab-ci-runner

我已经在CentOS 7 / Ubuntu OS中通过Sudo安装了gitlabRunner,docker和docker-compose,并且所有管道都运行良好,但是当我向gitlab-runner激活另一个项目时,它无法识别sudo之类的东西。并且有时当前的运行程序的行为类似于新的gitlab项目结果,docker或docker-compose,我不知道为什么?

$ whoami
root
$ docker info
/bin/sh: eval: line 59: docker: not found

要么

$ docker-compose --version
/bin/sh: eval: line 59: docker-compose: not found

最佳答案

主要问题是我们应该禁用共享运行程序的 ,因为docker和docker-compose或其他内容未安装到共享运行程序中。因此,停用它们后,一切都会按预期正常运行。

The shared runners have disabled in following image:



enter image description here

关于docker - Gitlab-runner:在根目录中找不到docker或docker-compose,但它们已经安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59906801/

相关文章:

bash - Docker Run 和变量替换

c - ubuntu中编译c程序时出现"File not found"错误

Docker,如何替换 docker 中的 capistrano 任务

docker - 如何使用 docker-compose 在同一主机上的单独部署中连接 docker 容器?

node.js - PRISMA:身份验证 token 无效:未提供 'Authorization' header

docker - 错误 : error getting endorser client for channel

ubuntu - yiic.php 有效但 yiic 在 Ubuntu 中无效

linux - 如何在终端上使用 VIM 配色方案?

asp.net-core - C# 核心的 Docker 构建需要互联网连接

java - Eclipse Che 不启动 : 'java.lang.ClassNotFoundException org.apache.juli.ClassLoaderLogManager'