首页 > 其他 > 详细

gitlab runner 填坑记

时间:2019-02-13 19:22:59      阅读:191      评论:0      收藏:0      [点我收藏+]

一、Gitlab Runner  CI/CD 错误:

Couldnt connect to Docker daemon at http+docker://localhost - is it running?

If its at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
ERROR: Job failed: exit status 1

 

 

 解决办法:

# 修改权限
$chmod +x /usr/local/bin/gitlab-runner

# 添加gitlab-runner用户
$useradd --comment ‘GitLab Runner‘ --create-home gitlab-runner --shell /bin/bash

# 将gitlab-runner用户添加到docker组 
$sudo usermod -aG docker gitlab-runner

# 验证
$sudo -u gitlab-runner -H docker info 

如图

技术分享图片

 

gitlab runner 填坑记

原文:https://www.cnblogs.com/guoyiwen/p/10371393.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!