【发布时间】:2022-08-15 20:31:28
【问题描述】:
我正在尝试在我的 Azure 管道中提取 Docker 容器。 Azure 管道在自托管代理上运行,该代理在 docker 容器中运行。我收到以下错误:
当管道本身在容器自托管代理上运行时,是否可以在管道中运行容器?
管道 YAML:
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
resources:
containers:
- container: qmate
image: qmate.int.repositories.cloud.sap/qmate-executor:latest
pool:
vmImage: ubuntu-latest
name: SYS-DEV-Self-hosted
demands:
- agent.name -equals SYSDEV-agent
steps:
- task: NodeTool@0
inputs:
versionSpec: \'15.x\'
displayName: \'Install Node.js\'
- task: DockerInstaller@0
inputs:
dockerVersion: \'17.09.0-ce\'
- script: docker pull qmate
workingDirectory: ./
displayName: \'Docker Pull\'
- script: |
cd tests/QmateE2E/regression
npm install
npx wdio config.js
displayName: \'npm install and build\'
标签: azure docker azure-pipelines