【问题标题】:Azure container job service connectionAzure 容器作业服务连接
【发布时间】:2018-11-28 21:32:11
【问题描述】:

我正在尝试使用来自私有 azure 注册表的容器映像在 azure 管道中运行容器作业。

我关注了those instructions,最终得到了这个管道配置:

resources:
  containers:
  - container: build_container
    image: gxg08regtest.azurecr.io/ci-build-image:66162
    endpoint: SandboxGXG08

pool:
  vmImage: 'ubuntu-16.04'

container: build_container

steps:
- script: ./build.sh

它似乎遵循模式,但仍然给出这个错误:

预期为 build_container 引用的映像注册表的“dockerregistry”服务连接类型,但为服务连接 SandboxGXG08 获得了 azurerm。

在我看来,解析器在解析我的图像声明时无法匹配正确的模式。

有什么想法吗?

【问题讨论】:

    标签: azure azure-devops azure-pipelines azure-container-registry


    【解决方案1】:

    错误消息告诉您问题所在,因为错误消息(希望如此)通常会这样做:

    预期为 build_container 引用的映像注册表的“dockerregistry”服务连接类型,但为服务连接 SandboxGXG08 获得了 azurerm。

    您使用了错误的服务连接类型。添加 Docker Registry 服务连接。您使用的是 Azure 资源管理器服务连接。

    【讨论】:

    • 但是这是我用来推送docker镜像的服务连接,还是不是正确的使用镜像类型?
    猜你喜欢
    • 2017-09-08
    • 1970-01-01
    • 2021-06-23
    • 1970-01-01
    • 2021-12-17
    • 1970-01-01
    • 1970-01-01
    • 2020-10-08
    • 1970-01-01
    相关资源
    最近更新 更多