繁体   English   中英

如何验证管道的入口点:图像拉取失败,退避拉取图像“hashicorp/terraform:full”

[英]How do I verify entry point for pipeline: Image pull failed, back-off pulling image "hashicorp/terraform:full"

我是容器、管道和图像的新手,所以这里是菜鸟。 尝试在 Kube.netes 容器和我的 Terratest 的 go 文件中运行 Terratest 我正在导入以下内容。 我不认为导入是图像的问题,因为 mod 和 sum 文件已经在回购中,但以防万一。

    "testing"
    "strconv"
    "github.com/Jeffail/gabs"
    "github.com/stretchr/testify/assert"
    "github.com/gruntwork-io/terratest/modules/terraform"
    "github.com/gruntwork-io/terratest/modules/azure"
)

在 my.yml 文件中,我有以下内容:

image: golang:latest

include: 
  - template: Terraform/Base.latest.gitlab-ci.yml
...
test:
  stage: test
  image:
    name: "hashicorp/terraform:full"

而且我不断收到错误消息:

Waiting for pod GitLab-apps/runner-randomstringpart to be running, status is Pending
Waiting for pod GitLab-apps/runner-randomstringpart to be running, status is Pending
    ContainersNotReady: "containers with unready status: [build helper]"
    ContainersNotReady: "containers with unready status: [build helper]"
WARNING: Failed to pull image with policy "": image pull failed: Back-off pulling image "hashicorp/terraform:full"
ERROR: Job failed: prepare environment: waiting for pod running: pulling image "hashicorp/terraform:full": image pull failed: Back-off pulling image "hashicorp/terraform:full".

模板不是公开的,所以我可以消除它的权限错误吗?

图像hashicorp/terraform没有这样的标签:full 考虑替换为现有标签,例如:latest:1.1.8

暂无
暂无

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

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