Gitlab上的Kubernetes执行程序错误:作业失败:图像提取失败
我试图在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"})
任何人都知道为什么?
您需要:
- 让您的节点上的docker守护程序login到dockerregistry。 看看dockerlogin文档
- 将pod定义从私有registry中拉出来。 看看这些kubernetes文档
如果你经常这样做,我推荐第一个。