"没有可用的图像版本" for" docker-image"

时间:2017-09-29 06:47:15

标签: concourse

我创建了一个泊坞窗图像,并上传到我的内部神器中,用于大厅管道。 但是,当我执行作业时,错误"没有可用的图像版本"打印出来。 我不知道如何追踪问题

我出错了什么?有人可以帮忙吗?

- task: build
  config:
    platform: linux
    image_resource:
      type: docker-image
      source:
        repository: artifact.com/oocl/test_iamge
        tag: "latest"
    run:
      path: sh
      args:
      - -exc
      - |
        ping artifact.com -c 5

1 个答案:

答案 0 :(得分:0)

没有可用的版本表示您对图像的配置一般似乎很奇怪,或者图像本身无法访问。

您是否尝试过首先在本地运行泊坞窗图像? docker run artifact.com/oocl/test_iamge

您是否需要凭据才能从服务器接收图像? - >在这里查看示例https://concourse-ci.org/running-tasks.html

image_resource:
  type: docker-image
  source:
    repository: my.local.registry:8080/my/image
    insecure_registries: ["my.local.registry:8080"]
    username: myuser
    password: mypass
    email: x@x.com
相关问题