VSTS docker撰写任务

时间:2017-11-08 20:38:33

标签: docker docker-compose azure-devops azure-pipelines-build-task azure-container-registry

我尝试使用VSTS和docker-compose配置持续交付,我想将其推送到Azure容器注册表。 这是我在VSTS上的构建定义: enter image description here

我在构建结果上收到错误消息:

No such command: docker_compose
Commands:
build Build or rebuild services
bundle Generate a Docker bundle from the Compose file
config Validate and view the Compose file
create Create services
down Stop and remove containers, networks, images, and volumes
events Receive real time events from containers
exec Execute a command in a running container
help Get help on a command

你知道我该怎么办呢?

更新: 这是我的docker-compose

version: '3'

services:
  ci-build:
    image: microsoft/aspnetcore-build:1.0-1.1
    volumes:
      - .:/src
    working_dir: /src
    command: /bin/bash -c "dotnet restore ./Travelingowe.sln && dotnet publish ./Travelingowe.sln -c Release -o ./obj/Docker/publish"

1 个答案:

答案 0 :(得分:4)

而不是docker-compose up仅使用up。我自己也有同样的问题。