我如何验证管道的入口点:图像拉失败,向后拉图像和“ hashicorp/terraform”:full quot
我对容器、管道和图像很陌生,所以这里完全是菜鸟。尝试在 Kubernetes 容器中运行 Terratest 以及我的 Terratest go 文件,我正在导入以下内容。我不认为导入是图像的问题,因为 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"
)
在我的 .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".
模板不是公开的,因此我可以消除它是权限错误吗?
I'm new to containers, pipelines, and images so full noob here. Trying to run Terratest in a Kubernetes container and my go file for Terratest I'm importing the following. I don't think the imports are the problem of the image since the mod and sum file are in the repo already but just in case.
"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"
)
In my .yml file I have the following:
image: golang:latest
include:
- template: Terraform/Base.latest.gitlab-ci.yml
...
test:
stage: test
image:
name: "hashicorp/terraform:full"
And I keep getting the error:
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".
Isn't the template public so I can eliminate that it's a permissions error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有这样的标签
:图像
hashicorp/terraform 的完整。考虑替换为现有的标签,例如>
>:最新的
或:1.1.8
。There is no such tag
:full
for the imagehashicorp/terraform
. Consider replacing with an existing tag such as:latest
or:1.1.8
.