简体   繁体   English

Gitlab - 尝试在 docker 中部署时管道总是失败

[英]Gitlab - pipeline always fail when try to deploy in docker

When I deploy my pipeline always faile with this error, but when i retry the job the deploy pass.当我部署我的管道时,总是出现此错误,但当我重试作业时,部署通过。

This could be a error in the instances when try to download the image?在尝试下载图像时,这可能是一个错误?

Command exited with status 1.
(no stdout)
=== stderr ===
Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?
-  ---  -  ---  -  ---  -  ---  -  ---  -  ---  ----  -  ---  -  -

我认为这是共享跑步者的错,请尝试在 gitlab 上检查此问题

Thanks for asking the questions.感谢您提出问题。 Please provide the docker permission to your gitlab-runner user请为您的 gitlab-runner 用户提供 docker 权限

sudo usermod -aG docker gitlab-runner

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM