首页 > 解决方案 > Azure DevOps 在容器代理中执行容器作业

问题描述

我启动 Azure DevOps 容器代理docker run -e VSTS_ACCOUNT='kagarlickij' -e VSTS_POOL='Self-Hosted' -e VSTS_TOKEN='a***q' -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker mcr.microsoft.com/azure-pipelines/vsts-agent:ubuntu-16.04-docker-18.06.1-ce

我的管道有以下几行:

    pool:
      name: Self-Hosted
    container: kagarlickij/packer-ansible-azure-docker-runtime:2.0.0

..并得到:[error]Container feature is not supported when agent is already running inside container. Please reference documentation (https://go.microsoft.com/fwlink/?linkid=875268)

Azure DevOps 是否可以在容器代理中执行容器作业?

标签: azure-devops

解决方案


推荐阅读