简体   繁体   English

Gitlab上的Kubernetes执行程序错误:作业失败:图片提取失败

[英]Kubernetes executor on Gitlab ERROR: Job failed: image pull failed

I tried to setup Kubernetes executor on Gitlab, but I have this error: 我尝试在Gitlab上设置Kubernetes执行器,但出现此错误:

ERROR: Job failed: image pull failed: image pull failed for 
someprivateimage:latest, 
this may be because there are no credentials on this request.  details: 
(Error response from daemon: {"message":"Get 
https://someprivateimage/latest: denied: access forbidden"})

Anyone have idea why? 有人知道为什么吗?

You need to either: 您需要:

  • Have the docker daemon on your node login to the docker registry. 让您节点上的Docker守护程序登录到Docker注册表。 Have a look at the docker login docs 看看docker登录文档
  • Have the pod definition pull from a private registry. 让pod定义从私有注册表中提取。 Take a look at these kubernetes docs 看看这些kubernetes文档

If you're going to be doing this often, I recommend the first one. 如果您经常要这样做,我建议您第一个。

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

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