一、Gitlab Runner  CI/CD 错误:

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

If it's 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

$sudo -u gitlab-runner -H docker info 

如图

gitlab runner 填坑记

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-05-21
  • 2021-10-26
  • 2021-09-14
  • 2021-05-18
猜你喜欢
  • 2021-12-17
  • 2021-07-13
  • 2021-08-29
  • 2022-12-23
  • 2021-07-07
  • 2021-08-23
相关资源
相似解决方案